From 214fcc70d5c5c79b6c991725117f099c0d2f4e4a Mon Sep 17 00:00:00 2001 From: tmyqlfpir <80724828+tmyqlfpir@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:36:41 +1000 Subject: [PATCH] Blood: Use kMaxLevels for zLevelNames --- source/blood/src/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blood/src/menu.cpp b/source/blood/src/menu.cpp index 5d57e5c334..9dd399aa4b 100644 --- a/source/blood/src/menu.cpp +++ b/source/blood/src/menu.cpp @@ -175,7 +175,7 @@ const char *zPlayerKeysStrings[] = { char zUserMapName[BMAX_PATH]; const char *zEpisodeNames[6]; -const char *zLevelNames[6][16]; +const char *zLevelNames[6][kMaxLevels]; static char MenuGameFuncs[NUMGAMEFUNCTIONS][MAXGAMEFUNCLEN]; static char const *MenuGameFuncNone = " -None-"; @@ -2920,7 +2920,7 @@ void MenuSetupEpisodeInfo(void) { EPISODEINFO *pEpisode = &gEpisodeInfo[i]; zEpisodeNames[i] = pEpisode->title; - for (int j = 0; j < 16; j++) + for (int j = 0; j < kMaxLevels; j++) { if (j < pEpisode->nLevels) {