Skip to content
Snippets Groups Projects
Unverified Commit 17356f93 authored by Hanicef's avatar Hanicef
Browse files

Fix segfault when ghost dies from a death pit

parent 331c81f3
Branches
No related tags found
No related merge requests found
......@@ -3139,6 +3139,7 @@ boolean P_SceneryZMovement(mobj_t *mo)
if (P_CheckDeathPitCollide(mo))
{
if (mo->type != MT_GHOST) // ghosts play death animations instead, so don't remove them
P_RemoveMobj(mo);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment