From 4ae0352474f5535de965cb20c836c3def42048f2 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Mon, 24 Apr 2017 14:26:05 -0400 Subject: [PATCH] Fix debug verb for "Check Areas" --- code/modules/admin/verbs/debug.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index f06ab9ca337..64514afd211 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -316,37 +316,37 @@ for(var/obj/machinery/power/apc/APC in world) var/area/A = get_area(APC) - if(!(A.type in areas_with_APC)) + if(A && !(A.type in areas_with_APC)) areas_with_APC.Add(A.type) for(var/obj/machinery/alarm/alarm in world) var/area/A = get_area(alarm) - if(!(A.type in areas_with_air_alarm)) + if(A && !(A.type in areas_with_air_alarm)) areas_with_air_alarm.Add(A.type) for(var/obj/machinery/requests_console/RC in world) var/area/A = get_area(RC) - if(!(A.type in areas_with_RC)) + if(A && !(A.type in areas_with_RC)) areas_with_RC.Add(A.type) for(var/obj/machinery/light/L in world) var/area/A = get_area(L) - if(!(A.type in areas_with_light)) + if(A && !(A.type in areas_with_light)) areas_with_light.Add(A.type) for(var/obj/machinery/light_switch/LS in world) var/area/A = get_area(LS) - if(!(A.type in areas_with_LS)) + if(A && !(A.type in areas_with_LS)) areas_with_LS.Add(A.type) for(var/obj/item/device/radio/intercom/I in world) var/area/A = get_area(I) - if(!(A.type in areas_with_intercom)) + if(A && !(A.type in areas_with_intercom)) areas_with_intercom.Add(A.type) for(var/obj/machinery/camera/C in world) var/area/A = get_area(C) - if(!(A.type in areas_with_camera)) + if(A && !(A.type in areas_with_camera)) areas_with_camera.Add(A.type) var/list/areas_without_APC = areas_all - areas_with_APC