diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 7746bde50c..39c240716f 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -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