]> git.sur5r.net Git - c128-kasse/commitdiff
actually store deposit (#31)
authorAxel Wagner <mail@merovius.de>
Sat, 4 Nov 2017 14:21:44 +0000 (15:21 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sat, 4 Nov 2017 14:21:44 +0000 (15:21 +0100)
Fixes #24

src/credit_manager.c

index 91f6b3b187c2e7f362deaa0ff07dc552c68943b1..4cd9bb5dd1f07ee214d095c4bd3a44be70c1c358 100644 (file)
@@ -81,7 +81,7 @@ void deposit_credit(char *nickname) {
     return; // cannot find named credit
 
   cprintf("\r\nEinzahlung in Cent:\r\n");
-  if (cget_number(0) == 0)
+  if ((deposit = cget_number(0)) == 0)
     return;
 
   credit->credit += deposit;