Skip to content

Commit

Permalink
cautionary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
X0-11 committed Jan 31, 2024
1 parent 9e6b207 commit 4ebf7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/halo/misc/melee_strikes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
. = ..()

/obj/item/proc/has_melee_strike(var/mob/user)
if(isnull(melee_strikes))
if(isnull(melee_strikes) || melee_strikes.len == 0)
return null
if(isnull(melee_strike))
melee_strike = melee_strikes[1]
Expand Down

0 comments on commit 4ebf7da

Please sign in to comment.