diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm index 642ec99c73..2a997afba0 100644 --- a/code/_onclick/hud/hud.dm +++ b/code/_onclick/hud/hud.dm @@ -205,7 +205,7 @@ var/list/global_huds = list( /datum/hud/Destroy() . = ..() - qdel_null(minihuds) + QDEL_NULL_LIST(minihuds) grab_intent = null hurt_intent = null disarm_intent = null @@ -224,7 +224,9 @@ var/list/global_huds = list( other_important = 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() @@ -502,4 +504,4 @@ var/list/global_huds = list( ///Update the ammo hud related to the gun G /datum/hud/proc/update_ammo_hud(mob/living/user, obj/item/weapon/gun/G) var/obj/screen/ammo/ammo_hud = ammo_hud_list[G] - ammo_hud?.update_hud(user, G) \ No newline at end of file + ammo_hud?.update_hud(user, G)