Merge pull request #16684 from S34NW/transparent_turf_sanity_check

Fixes runtimes in null turfs
This commit is contained in:
Fox McCloud
2021-09-11 06:38:17 -04:00
committed by GitHub
@@ -71,7 +71,7 @@ Pipelines + Other Objects -> Pipe network
// Icons/overlays/underlays
/obj/machinery/atmospherics/update_icon()
var/turf/T = get_turf(loc)
if(T.transparent_floor)
if(T && T.transparent_floor)
plane = FLOOR_PLANE
else
if(!T || level == 2 || !T.intact)