Merge pull request #5525 from Crazylemon64/closet_movemob_fix

Fixes a closet runtime
This commit is contained in:
TheDZD
2016-08-23 14:06:37 -04:00
committed by GitHub
@@ -65,7 +65,10 @@
/obj/structure/closet/proc/moveMob(var/mob/M, var/atom/destination)
loc.Exited(M)
M.loc = destination
loc.Entered(M, ignoreRest = 1)
if(isturf(loc))
loc.Entered(M, src, ignoreRest = 1)
else
loc.Entered(M, src)
for(var/atom/movable/AM in loc)
if(istype(AM, /obj/item))
continue