mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 06:00:45 +00:00
Fix segfault when damaging mobj with no painstate
This commit is contained in:
parent
57b0dfcfac
commit
ad412c9700
1 changed files with 3 additions and 0 deletions
|
@ -3763,6 +3763,9 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
else
|
||||
P_SetMobjState(target, target->info->painstate);
|
||||
|
||||
if (P_MobjWasRemoved(target))
|
||||
return false;
|
||||
|
||||
if (target->type == MT_HIVEELEMENTAL)
|
||||
target->extravalue1 += 3;
|
||||
|
||||
|
|
Loading…
Reference in a new issue