Skip to content

Commit

Permalink
[MIRROR] fix return_inv() returning a null sometimes, causing get_all…
Browse files Browse the repository at this point in the history
…_gear() to runtime (#849)

* fix return_inv() returning a null sometimes, causing get_all_gear() to runtime

* Fix

---------

Co-authored-by: ViktorKoL <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
Co-authored-by: Mal <[email protected]>
  • Loading branch information
4 people authored and FFMirrorBot committed Feb 8, 2024
1 parent 107a5d8 commit 300d114
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/datums/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,21 @@ GLOBAL_LIST_EMPTY(cached_storage_typecaches)
return

var/list/ret = list()
<<<<<<< HEAD

Check failure on line 645 in code/datums/storage/storage.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '<<', expected one of: newline, '/', identifier
ret |= resolve_location.contents
if(recursive)
for(var/i in ret.Copy())
var/atom/atom = i
atom.atom_storage?.return_inv(ret, TRUE)

interface |= ret
=======

for(var/atom/found_thing as anything in real_location)
ret |= found_thing
if(recursive && found_thing.atom_storage)
ret |= found_thing.atom_storage.return_inv(recursive = TRUE)
>>>>>>> 5494b8563 ([MIRROR] fix return_inv() returning a null sometimes, causing get_all_gear() to runtime (#849))

return TRUE

Expand Down

0 comments on commit 300d114

Please sign in to comment.