Fixes motion runtimes from deleted targets (#32121)

This commit is contained in:
kevinz000
2017-10-27 02:46:39 -07:00
committed by CitadelStationBot
parent 5c94555ccd
commit 1110cca542
+1 -1
View File
@@ -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)