mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 08:20:52 +00:00
Merge branch 'fix-death-ghost-segfault' into 'next'
Fix segfault when ghost dies from a death pit Closes #999 See merge request STJr/SRB2!2026
This commit is contained in:
commit
c1d3af0449
1 changed files with 2 additions and 1 deletions
|
@ -3139,7 +3139,8 @@ boolean P_SceneryZMovement(mobj_t *mo)
|
|||
|
||||
if (P_CheckDeathPitCollide(mo))
|
||||
{
|
||||
P_RemoveMobj(mo);
|
||||
if (mo->type != MT_GHOST) // ghosts play death animations instead, so don't remove them
|
||||
P_RemoveMobj(mo);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue