[Fix] Fixed segfault in volatile nebulae.

This commit is contained in:
Allanis 2014-05-17 13:15:08 +01:00
parent 31ec890d3e
commit 8f579ba9ac

View File

@ -461,6 +461,7 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
} }
} }
if(w != NULL)
/* Knock back effect is dependent on both damage and mass of the weapon. */ /* Knock back effect is dependent on both damage and mass of the weapon. */
/* should probably turn it into a partial conservative collision.. */ /* should probably turn it into a partial conservative collision.. */
vect_cadd(&p->solid->vel, vect_cadd(&p->solid->vel,