From b9a0d22088e6d142ff53e7f9683e292544afff45 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 1 Aug 2022 04:55:40 +0200 Subject: [PATCH] [MIRROR] Fixes runtime from getting a weakref loc [MDB IGNORE] (#15331) * 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 :-] * Fixes runtime from getting a weakref loc Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> --- 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()