From: Axel Wagner Date: Sat, 4 Nov 2017 14:21:44 +0000 (+0100) Subject: actually store deposit (#31) X-Git-Tag: rgb2rv17~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9de3c73dc62d9a8bab0c7e75424a3a7aa5be0596;p=c128-kasse actually store deposit (#31) Fixes #24 --- diff --git a/src/credit_manager.c b/src/credit_manager.c index 91f6b3b..4cd9bb5 100644 --- a/src/credit_manager.c +++ b/src/credit_manager.c @@ -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;