Pinpointer runtime fixes (#15162)

* Fixes pinpointer.dm runtimes

* more pinpointer stuff

* fixes a crew.dm:37 runtime as well

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
Kyep
2020-12-21 09:47:37 +00:00
committed by GitHub
co-authored by Kyep
parent 1249616676
commit 3f6b7de694
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ GLOBAL_DATUM_INIT(crew_repository, /datum/repository/crew, new())
if(!C || C.sensor_mode == SUIT_SENSOR_OFF || !C.has_sensor)
continue
var/turf/pos = get_turf(C)
if(!T || pos.z != T.z)
if(!istype(pos) || !T || pos.z != T.z)
continue
var/list/crewmemberData = list("dead"=0, "oxy"=-1, "tox"=-1, "fire"=-1, "brute"=-1, "area"="", "x"=-1, "y"=-1, "ref" = "\ref[H]")