Limit scope of locate

This commit is contained in:
Timberpoes
2020-07-08 16:40:00 +01:00
parent 9c5ff6ea41
commit 3d2aa32810
+1 -1
View File
@@ -17,7 +17,7 @@
if (action == "orbit")
var/ref = params["ref"]
var/atom/movable/poi = locate(ref)
var/atom/movable/poi = (locate(ref) in GLOB.mob_list) || (locate(ref) in GLOB.poi_list)
if (poi != null)
owner.ManualFollow(poi)