Skip to content

Commit

Permalink
bugfix: storage-in-storage runtime fix (#4031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Dec 10, 2023
1 parent 5ea6779 commit 418267e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/items/weapons/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
/obj/item/storage/proc/show_to(mob/user)
if(!user.client)
return
if(QDELETED(src))
return
if(user.s_active != src && !isobserver(user))
for(var/obj/item/I in src) // For bombs with mousetraps, facehuggers etc
if(I.on_found(user))
Expand Down Expand Up @@ -466,7 +468,7 @@

if(usr)
orient2hud(usr)
if(usr.s_active)
if(usr.s_active && !QDELETED(src))
usr.s_active.show_to(usr)
if(W.maptext)
W.maptext = ""
Expand Down

0 comments on commit 418267e

Please sign in to comment.