mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Fixed runtime error related to deleting worn items (#17689)
* new and improved * Fixed the hard del again
This commit is contained in:
@@ -166,10 +166,6 @@ GLOBAL_DATUM_INIT(fire_overlay, /image, image("icon" = 'icons/goonstation/effect
|
||||
if(ismob(loc))
|
||||
var/mob/m = loc
|
||||
m.unEquip(src, 1)
|
||||
else if(istype(loc, /obj/item/storage))
|
||||
var/obj/item/storage/S = loc
|
||||
if(!QDELETED(S)) // Can happen when the storage gets deleted, thus deleting the contents
|
||||
S.remove_from_storage(src) // Not required to call. Will only cause runtimes
|
||||
QDEL_LIST(actions)
|
||||
master = null
|
||||
return ..()
|
||||
|
||||
@@ -413,7 +413,11 @@
|
||||
if(silent)
|
||||
prevent_warning = TRUE
|
||||
I.forceMove(src)
|
||||
if(QDELING(I))
|
||||
return FALSE
|
||||
I.on_enter_storage(src)
|
||||
if(QDELING(I))
|
||||
return FALSE
|
||||
|
||||
for(var/_M in mobs_viewing)
|
||||
var/mob/M = _M
|
||||
|
||||
Reference in New Issue
Block a user