diff --git a/src/p_mobj.c b/src/p_mobj.c index 6916c4069..2b4d4c849 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -14013,6 +14013,10 @@ static mobj_t *P_SpawnMobjFromMapThing(mapthing_t *mthing, fixed_t x, fixed_t y, size_t arg = SIZE_MAX; mobj = P_SpawnMobj(x, y, z, i); + + if (mobj == NULL || P_MobjWasRemoved(mobj)) + return NULL; + mobj->spawnpoint = mthing; if (doangle)