[Fix] Fixed segfault in volatile nebulae.
This commit is contained in:
parent
31ec890d3e
commit
8f579ba9ac
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user