Skip to content

Commit 3208aa9

Browse files
committed
Expanded assertion.
1 parent f72bc0e commit 3208aa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void restartMissionMenu()
202202

203203
// TheSuperHackers @bugfix Caball009 07/02/2026 Reuse the previous seed value for the new skirmish match to prevent mismatches.
204204
// Campaign, challenge, and skirmish single-player scenarios all use GAME_SINGLE_PLAYER and are expected to use 0 as seed value.
205-
DEBUG_ASSERTCRASH(!TheSkirmishGameInfo || gameMode == GAME_SKIRMISH, ("TheSkirmishGameInfo is expected to be NULL if game mode isn't SKIRMISH"));
205+
DEBUG_ASSERTCRASH(static_cast<Bool>(TheSkirmishGameInfo) == (gameMode == GAME_SKIRMISH), ("TheSkirmishGameInfo does not match expected game mode"));
206206
const UnsignedInt seed = (TheSkirmishGameInfo) ? TheSkirmishGameInfo->getSeed() : 0;
207207

208208
//

0 commit comments

Comments
 (0)