diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-02 11:41:29 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-02 11:41:29 +0800 |
commit | 4a2f67b7c0d31ea0b1f09663bb5b531d97223877 (patch) | |
tree | d409c8fe737e9fd7e1f60165a62c316e1e9ad20c /mbbsd/menu.c | |
parent | 45e2fad473ccdeb47eeb271b25a67b909a957e29 (diff) | |
download | pttbbs-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
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r-- | mbbsd/menu.c | 2 |
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 */ |