Machinery clears it's occupant var if removed (#1767)

This commit is contained in:
CitadelStationBot
2017-06-30 22:42:58 -05:00
committed by kevinz000
parent 9d5e51777b
commit 57bf6fc7ba
+5
View File
@@ -495,3 +495,8 @@ Class Procs:
emp_act(2)
else
ex_act(2)
/obj/machinery/Exited(atom/movable/AM, atom/newloc)
. = ..()
if (AM == occupant)
occupant = null