add mobj check here
This commit is contained in:
1 parent
38a3f403bd
commit
e4f9ca3f3c
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user