From 97e11696cb4fdf223a9cf995f6ae375d9c7c438e Mon Sep 17 00:00:00 2001 From: Tom <8881105+tf-4@users.noreply.github.com> Date: Mon, 1 Aug 2022 03:43:02 +0100 Subject: [PATCH] Fixes runtime from getting a weakref loc (#68659) fixes get_storage_locs to return the real_location?.resolve() instead of parent so weakrefs passed in (spotted in stabilized.dm) don't runtime thanks tsu :-] --- code/__HELPERS/atoms.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/atoms.dm b/code/__HELPERS/atoms.dm index 861f9475208..3eb8202f90c 100644 --- a/code/__HELPERS/atoms.dm +++ b/code/__HELPERS/atoms.dm @@ -322,4 +322,4 @@ rough example of the "cone" made by the 3 dirs checked var/datum/storage/storage_datum = target.loc.atom_storage if(!storage_datum) return - . += storage_datum.parent + . += storage_datum.real_location?.resolve()