Skip to content

Commit

Permalink
Fixed duplicate text at the game start settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Jan 3, 2024
1 parent 4755cdb commit ed60ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smw/gamemodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ void CGameMode::SetupModeStrings(const char * szMode, const char * szGoal, short
for (short iMode = 0; iMode < GAMEMODE_NUM_OPTIONS; iMode++) {
if (iMode == GAMEMODE_NUM_OPTIONS - 1) {
modeOptions[iMode].iValue = -1;
modeOptions[iMode].szName += "Unlimited";
modeOptions[iMode].szName = "Unlimited";
} else {
modeOptions[iMode].iValue = (iMode + 1) * iGoalSpacing;
modeOptions[iMode].szName += std::to_string(modeOptions[iMode].iValue);
modeOptions[iMode].szName = std::to_string(modeOptions[iMode].iValue);
}
}
}
Expand Down

0 comments on commit ed60ed4

Please sign in to comment.