Fixes get_turf() runtime

This commit is contained in:
HarpyEagle
2016-05-24 13:06:34 -04:00
committed by Arokha Sieyes
parent dd9082f903
commit 2aa0e29ae6

View File

@@ -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)