diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index e3c1eb15a0..0858ebc1a4 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -1041,7 +1041,7 @@ proc/get_mob_with_client_list() //returns null if the atom is not in a turf. /proc/get_turf(atom/movable/A) if(isturf(A)) return A - if(A.locs.len) return A.locs[1] + if(A && A.locs.len) return A.locs[1] /proc/get(atom/loc, type) while(loc)