add mobj check here

This commit is contained in:
Alug committed 2024-06-09 18:55:49 +02:00
1 parent bd7103d109
commit 6ffb50530d
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);