From 4d28ea650f93250437ff1e463e415715b0c1d936 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 3 Jun 2008 05:27:05 +0000 Subject: - fix buying check money: offset-by-one bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4333 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gamble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index 81310988..cf7a43b2 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -151,7 +151,7 @@ buy_ticket_ui(int money, const char *picture, int *item, int haveticket) return; reload_money(); - if (cuser.money/money <= num) { + if (cuser.money/money < num) { vmsg("²{ª÷¤£°÷ !!!"); return; } -- cgit v1.2.3