Fixes nullspace bug when entering deleted disposal bins (#15141)

This commit is contained in:
dearmochi
2020-12-19 11:18:39 +00:00
committed by GitHub
parent 652f8aa4a0
commit 3ed5f7caf5
+1 -1
View File
@@ -198,7 +198,7 @@
V.show_message("[usr] starts stuffing [target.name] into the disposal.", 3)
if(!do_after(usr, 20, target = target))
return
if(target_loc != target.loc)
if(QDELETED(src) || target_loc != target.loc)
return
if(target == user && !user.stat && !user.IsWeakened() && !user.stunned && !user.paralysis) // if drop self, then climbed in
// must be awake, not stunned or whatever