add mobj check here
This commit is contained in:
1 parent
bd7103d109
commit
6ffb50530d
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