Stop touching a random item box crashing debug builds

This commit is contained in:
Sryder 2018-03-13 02:51:14 +00:00
parent be0e5fe627
commit e3de8ae75f

View file

@ -1553,8 +1553,11 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
}
}
S_StartSound(toucher, special->info->deathsound); // was NULL, but changed to player so you could hear others pick up rings
P_KillMobj(special, NULL, toucher);
if (!P_MobjWasRemoved(special))
{
S_StartSound(toucher, special->info->deathsound); // was NULL, but changed to player so you could hear others pick up rings
P_KillMobj(special, NULL, toucher);
}
}
//