Adds sanity to pinpointers (#50803)

This commit is contained in:
nemvar
2020-05-05 17:09:42 -07:00
committed by GitHub
parent 84756061d4
commit dec89b20b0
+1 -1
View File
@@ -66,7 +66,7 @@
return
var/turf/here = get_turf(src)
var/turf/there = get_turf(target)
if(here.z != there.z)
if(!here || !there || here.z != there.z)
. += "pinon[alert ? "alert" : ""]null[icon_suffix]"
return
. += get_direction_icon(here, there)