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 :-]
This commit is contained in:
Tom
2022-08-01 14:43:02 +12:00
committed by GitHub
parent e0c151a9f8
commit 97e11696cb
+1 -1
View File
@@ -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()