From 1110cca5422f7755470578337f7fd13755db784e Mon Sep 17 00:00:00 2001 From: kevinz000 Date: Fri, 27 Oct 2017 02:46:39 -0700 Subject: [PATCH] Fixes motion runtimes from deleted targets (#32121) --- code/game/machinery/camera/motion.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/camera/motion.dm b/code/game/machinery/camera/motion.dm index f26b60202e..6ac7e1249d 100644 --- a/code/game/machinery/camera/motion.dm +++ b/code/game/machinery/camera/motion.dm @@ -17,7 +17,7 @@ else if (detectTime == -1) for (var/targetref in getTargetList()) var/mob/target = locate(targetref) in GLOB.mob_list - if (target.stat == DEAD || QDELETED(target) || (!area_motion && !in_range(src, target))) + if (QDELETED(target) || target.stat == DEAD || (!area_motion && !in_range(src, target))) //If not part of a monitored area and the camera is not in range or the target is dead lostTarget(target)