Merge pull request #20525 from optimumtact/dropdelloops

Prevent infinite loops with DROPDEL items and del_on_death simple mobs
This commit is contained in:
Joan Lung
2016-09-18 15:51:49 -04:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -305,6 +305,9 @@
if(del_on_death)
ghostize()
stat = DEAD
//Prevent infinite loops if the mob Destroy() is overriden in such
//a manner as to cause a call to death() again
del_on_death = FALSE
qdel(src)
return
else