Ignore scenery thinker for player objects

Prevents Lua from being able to remove player objects using MF_SCENERY
and causing potential crashes
This commit is contained in:
romoney5 authored and Alug committed 2026-07-24 07:34:44 +02:00
1 parent 7099e4d739
commit ffa7b27a9e
1 file changed
+1 -1
+1 -1
View File
@@ -9310,7 +9310,7 @@ void P_MobjThinker(mobj_t *mobj)
mobj->frame = (mobj->frame & ~FF_TRANSMASK) | (((NUMTRANSMAPS-1) - mobj->fuse / 2) << FF_TRANSSHIFT);
// Special thinker for scenery objects
if (mobj->flags & MF_SCENERY)
if (mobj->flags & MF_SCENERY && !mobj->player)
{
P_MobjSceneryThink(mobj);
return;