Skip to content

Commit

Permalink
Blood: Use kMaxLevels for zLevelNames
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored and Hendricks266 committed Dec 15, 2024
1 parent 8b73696 commit 214fcc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/blood/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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-";
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 214fcc7

Please sign in to comment.