Skip to content

Commit

Permalink
fix(hud): fix adding qdeleted actions to the HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
kreeperHLC authored Oct 18, 2023
1 parent d096d3f commit a198777
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/mob/living/living_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@

var/button_number = 0
for(var/datum/action/A in actions)
if(QDELETED(A))
continue

button_number++
if(A.button == null)
var/obj/screen/movable/action_button/N = new(hud_used)
Expand Down

0 comments on commit a198777

Please sign in to comment.