]> git.sur5r.net Git - c128-kasse/commitdiff
items can now be returned (fixing ticket #8)
authormatze <matze@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Thu, 25 Oct 2007 12:21:25 +0000 (12:21 +0000)
committermatze <matze@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Thu, 25 Oct 2007 12:21:25 +0000 (12:21 +0000)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@59 af93e077-1a23-4f1e-9cbe-9382a9d578f5

src/kasse.c

index 3cb30b50eb48a4a311fcf153a281075bbd9dd5ba..74b9553505ad90903f38f5971f95b004e2b1adf6 100644 (file)
@@ -135,7 +135,7 @@ void buy(BYTE n) {
                 * to NULL if no such credit could be found */
                for (c = 0; c < credits.num_items; ++c)
                        if (strncmp(nickname, credits.credits[c].nickname, nickname_len) == 0) {
-                               if (credits.credits[c].credit < (status.status[n].price * einheiten)) {
+                               if ((signed int)credits.credits[c].credit < ((signed int)status.status[n].price * einheiten)) {
                                        cprintf("Sorry, %s hat nicht genug Geld :-(\r\n", nickname);
                                        return;
                                }