Merge pull request #8975 from Seris02/gunqdelfix

fixes a runtime in huds deleting and the gun deletion on login issue
This commit is contained in:
Atermonera
2023-03-04 13:16:19 -08:00
committed by GitHub

View File

@@ -196,7 +196,7 @@ var/global/list/global_huds = list(
/datum/hud/Destroy()
. = ..()
QDEL_NULL(minihuds)
QDEL_NULL_LIST(minihuds)
grab_intent = null
hurt_intent = null
disarm_intent = null
@@ -214,7 +214,9 @@ var/global/list/global_huds = list(
other = null
hotkeybuttons = null
// item_action_list = null // ?
QDEL_LIST(ammo_hud_list)
for (var/x in ammo_hud_list)
remove_ammo_hud(mymob, x)
ammo_hud_list = null
mymob = null
/datum/hud/proc/hidden_inventory_update()