From ad5d29af775a87b4b50f5049c2cb0d56cf2ed4f1 Mon Sep 17 00:00:00 2001 From: fdai7472 Date: Mon, 29 Jan 2024 18:38:36 +0100 Subject: [PATCH] bugfix: Wetteinsatz von 0 nicht mehr moeglich --- src/main/c/Stefan/slot_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/c/Stefan/slot_machine.c b/src/main/c/Stefan/slot_machine.c index d97ff48..a3731e6 100644 --- a/src/main/c/Stefan/slot_machine.c +++ b/src/main/c/Stefan/slot_machine.c @@ -42,7 +42,7 @@ int getBet(int balance){ printf("Wetteinsatz: "); int bet = userInput(); - if(bet <= balance && bet >= 0){ + if(bet <= balance && bet > 0){ return bet; } else { printf("Ungueltige Eingabe!\n");