fixes a nar-sie runtime (#20203)

This commit is contained in:
GDN
2023-01-15 18:04:39 -05:00
committed by GitHub
parent 24b77a7ff1
commit 860b2e5334
+2
View File
@@ -122,6 +122,8 @@
var/list/noncultists = list()
for(var/mob/living/carbon/food in GLOB.alive_mob_list) //we don't care about constructs or cult-Ians or whatever. cult-monkeys are fair game i guess
var/turf/pos = get_turf(food)
if(!pos) // The GLOB mob list (alive or dead) can contain null entries, so we gotta check if we're trying to get the turf of something that doesn't exist
return
if(pos.z != src.z)
continue