add mobj check here

This commit is contained in:
Alug committed 2024-06-09 18:13:17 +02:00
1 parent 38a3f403bd
commit e4f9ca3f3c
1 file changed
+3
+3
View File
@@ -1195,6 +1195,9 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
{
mobj_t *ghost;
if (!mobj || P_MobjWasRemoved(mobj))
return;
ghost = P_SpawnMobj(mobj->x, mobj->y, mobj->z, MT_GHOST);
P_SetScale(ghost, mobj->scale);