Skip to content

Commit

Permalink
Fix crash when trying to change display without preview enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
DivvyCr committed Mar 25, 2024
1 parent af9f4d5 commit 6d8ef52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mods/DVPreview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function G.UIDEF.settings_tab(tab)
end

function minmax_toggle_callback(_)
if not G.HUD then return end
if not G.HUD or not DV.PRE.enabled then return end

G.GAME.current_round.current_hand.simulated_data = DV.PRE.simulate()
if not DV.PRE.show_min_max then
Expand Down

0 comments on commit 6d8ef52

Please sign in to comment.