mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 11:21:11 +00:00
Merge branch 'fix-mobj-damage-null-pain-state' into 'next'
Fix segfault when damaging mobj with no painstate See merge request STJr/SRB2!1968
This commit is contained in:
commit
f83f1a1229
1 changed files with 3 additions and 0 deletions
|
@ -3765,6 +3765,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