summaryrefslogtreecommitdiffstats
path: root/mbbsd/gamble.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r--mbbsd/gamble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index 917d71b6..d37b5fa5 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -1,4 +1,4 @@
-/* $Id: gamble.c,v 1.17 2002/06/22 07:23:22 ptt Exp $ */
+/* $Id: gamble.c,v 1.18 2002/06/22 18:01:23 ptt Exp $ */
#include "bbs.h"
#ifndef _BBS_UTIL_C_
@@ -333,7 +333,7 @@ int openticket(int bid) {
while (fscanf(fp1, "%s %d %d\n", userid, &mybet, &i) != EOF)
{
- if (bet==98 )
+ if (bet==98 && mybet>=0 && mybet<count )
{
fprintf(fp,"%s ¶R¤F %d ±i %s, °h¦^ %d ªT¢Þ¹ô\n"
,userid, i, betname[mybet], money);