Fix runtime when clicking RCD on almost anything.

- get_base_turf_by_area() must only be called on turfs!
This commit is contained in:
Leshana
2018-02-22 15:25:33 -05:00
parent 1c7a9c6837
commit 581bee4909
+1 -1
View File
@@ -103,7 +103,7 @@
build_delay = 50
build_type = "airlock"
build_other = /obj/machinery/door/airlock
else if(!deconstruct && (istype(T,/turf/space) || istype(T,get_base_turf_by_area(T))))
else if(!deconstruct && isturf(T) && (istype(T,/turf/space) || istype(T,get_base_turf_by_area(T))))
build_cost = 1
build_type = "floor"
build_turf = /turf/simulated/floor/airless