Don't return NULL when creating MT_NULL mobj, since it is needed in some parts of game

This commit is contained in:
indev authored and Alug committed 2024-02-27 13:29:20 +01:00
1 parent bba3e1810b
commit 103fb2dfc1
1 file changed
-3
-3
View File
@@ -9320,9 +9320,6 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type)
const mobjinfo_t *info = &mobjinfo[type];
state_t *st;
mobj_t *mobj = Z_Calloc(sizeof (*mobj), PU_LEVEL, NULL);
if (type == MT_NULL)
return NULL;
// this is officially a mobj, declared as soon as possible.
mobj->thinker.function.acp1 = (actionf_p1)P_MobjThinker;