fix crash

This commit is contained in:
scmcgowen
2026-01-31 23:33:11 -06:00
parent 2a027a4cbe
commit 5b5424cf1d

View File

@@ -89,7 +89,7 @@ money = tonumber(money)
print("what is your bet?")
local bet = io.read()
bet = tonumber(bet)
if bet < 20 then
if not bet or bet < 20 then
bet = 20
end
if bet > money then