Fixes #9453 and fixes #10614

This commit is contained in:
mwerezak
2015-08-16 15:39:02 -04:00
parent 00362809b1
commit 13c760c5bb
3 changed files with 14 additions and 19 deletions

View File

@@ -184,11 +184,9 @@
if(!uses_charge)
amount -= used
if (amount <= 0)
spawn(0) //delete the empty stack once the current context yields
if (amount <= 0) //check again in case someone transferred stuff to us
if(usr)
usr.remove_from_mob(src)
qdel(src)
if(usr)
usr.remove_from_mob(src)
qdel(src) //should be safe to qdel immediately since if someone is still using this stack it will persist for a little while longer
return 1
else
if(get_amount() < used)