Skip to content

Commit 22e7c8a

Browse files
committed
fix crashes with gold ascension stuff
1 parent 0b461b9 commit 22e7c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ascended.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function G.FUNCS.get_poker_hand_info(_cards)
130130
["cry_WholeDeck"] = 52,
131131
}
132132
-- Change mult and chips colors if hand is ascended
133-
if #scoring_hand > hand_table[text] then
133+
if hand_table[text] and next(scoring_hand) and #scoring_hand > hand_table[text] then
134134
ease_colour(G.C.UI_CHIPS, copy_table(G.C.GOLD), 0.3)
135135
ease_colour(G.C.UI_MULT, copy_table(G.C.GOLD), 0.3)
136136
else

0 commit comments

Comments
 (0)