fix crash

This commit is contained in:
scmcgowen
2026-01-31 23:34:06 -06:00
parent 5b5424cf1d
commit 348919bb52

View File

@@ -76,8 +76,8 @@ print("what is your bet?")
bet = tonumber(io.read())
print("what is your guess 1 to 15?")
userGess = tonumber(io.read())
if bet > money then
print("You do not have enough funds")
if not bet or bet > money then
print("You do not have enough funds or did not enter a bet.")
sleep(3)
shell.run("reboot")
end