[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>
This commit is contained in:
SkyratBot
2022-08-01 04:55:40 +02:00
committed by GitHub
parent 7eab0360b2
commit b9a0d22088

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 var/datum/storage/storage_datum = target.loc.atom_storage
if(!storage_datum) if(!storage_datum)
return return
. += storage_datum.parent . += storage_datum.real_location?.resolve()