From 9de3c73dc62d9a8bab0c7e75424a3a7aa5be0596 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 4 Nov 2017 15:21:44 +0100 Subject: [PATCH] actually store deposit (#31) Fixes #24 --- src/credit_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5