From a95fb42425f0ed638b6c7ba1b243a73ce78702fd Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:35:26 +0300 Subject: [PATCH] Fixes a runtime in requests console error logging (#89044) ## About The Pull Request Target is null so we cannot work with its area, etc etc. ## Changelog :cl: fix: Fixed a runtime in requests console error logging /:cl: --- code/modules/mapping/mapping_helpers.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index e5f53c2b02d..c122b8abc1c 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -1274,7 +1274,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_atoms_ontop) /obj/effect/mapping_helpers/requests_console/LateInitialize() var/obj/machinery/airalarm/target = locate(/obj/machinery/requests_console) in loc if(isnull(target)) - var/area/target_area = get_area(target) + var/area/target_area = get_area(src) log_mapping("[src] failed to find a requests console at [AREACOORD(src)] ([target_area.type]).") else payload(target)