diff options
-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 */ |