Check for removed mobj for loop
This commit is contained in:
parent
2876e2adc6
commit
cf09ac0023
1 changed files with 3 additions and 1 deletions
|
|
@ -12317,7 +12317,9 @@ static void P_SpawnItemRow(mapthing_t *mthing, mobjtype_t *itemtypes, UINT8 numi
|
||||||
|
|
||||||
loopanchor->spawnpoint = NULL;
|
loopanchor->spawnpoint = NULL;
|
||||||
|
|
||||||
Obj_LinkLoopAnchor(loopanchor, loopcenter, mthing->args[0]);
|
if (!P_MobjWasRemoved(loopanchor))
|
||||||
|
Obj_LinkLoopAnchor(loopanchor, loopcenter, mthing->args[0]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (r = 0; r < numitems; r++)
|
for (r = 0; r < numitems; r++)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue