summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-02 11:41:29 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-02 11:41:29 +0800
commit4a2f67b7c0d31ea0b1f09663bb5b531d97223877 (patch)
treed409c8fe737e9fd7e1f60165a62c316e1e9ad20c
parent45e2fad473ccdeb47eeb271b25a67b909a957e29 (diff)
downloadpttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar.gz
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar.bz2
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar.lz
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar.xz
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.tar.zst
pttbbs-4a2f67b7c0d31ea0b1f09663bb5b531d97223877.zip
use macro
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3509 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index 7e30af4b..09e93920 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -177,7 +177,7 @@ movie(int cmdmode)
int i;
if ((currstat != CLASS) && (cuser.uflag & MOVIE_FLAG) &&
!SHM->Pbusystate && SHM->last_film > 0) {
- if (cmdmode < sizeof(movie_map) / sizeof(movie_map[0]) &&
+ if (cmdmode < N_SYSMOVIE &&
0 < movie_map[cmdmode] && movie_map[cmdmode] <= SHM->last_film) {
i = movie_map[cmdmode];
} else if (cmdmode == 999999) { /* Goodbye my friend */