mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user