Fixes runtime in prison_break.dm, line 214

This commit is contained in:
atermonera
2021-03-22 20:58:59 -09:00
parent 3a82d38de4
commit a2803a093d

View File

@@ -211,7 +211,7 @@
/datum/event2/event/prison_break/proc/flicker_area()
for(var/area/A in areas_to_break)
var/obj/machinery/power/apc/apc = A.get_apc()
if(apc.operating) //If the apc's off, it's a little hard to overload the lights.
if(istype(apc) && apc.operating) //If the apc's off, it's a little hard to overload the lights.
for(var/obj/machinery/light/L in A)
L.flicker(10)