File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/System
Generals/Code/GameEngine/Source/GameLogic/System Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ static void populateRandomStartPosition( GameInfo *game )
846846 continue ;
847847
848848 Int posIdx = slot->getStartPos ();
849- if (posIdx >= 0 || posIdx >= numPlayers)
849+ if (posIdx >= 0 || posIdx >= numPlayers) // TheSuperHackers @todo stm 19/12/2025 this is not a proper bounds check
850850 {
851851 hasStartSpotBeenPicked = TRUE ;
852852 taken[posIdx] = TRUE ;
@@ -1105,6 +1105,7 @@ void GameLogic::startNewGame( Bool saveGame )
11051105 {
11061106 TheGameInfo = TheSkirmishGameInfo;
11071107 }
1108+ // TheSuperHackers @info stm 18/12/2025 TheGameInfo is nullptr when you load a savegame of a regular campaign mission
11081109 }
11091110
11101111 checkForDuplicateColors ( TheGameInfo );
Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ static void populateRandomStartPosition( GameInfo *game )
891891 continue ;
892892
893893 Int posIdx = slot->getStartPos ();
894- if (posIdx >= 0 || posIdx >= numPlayers)
894+ if (posIdx >= 0 || posIdx >= numPlayers) // TheSuperHackers @todo stm 19/12/2025 this is not a proper bounds check
895895 {
896896 hasStartSpotBeenPicked = TRUE ;
897897 taken[posIdx] = TRUE ;
@@ -1251,6 +1251,7 @@ void GameLogic::startNewGame( Bool loadingSaveGame )
12511251 {
12521252 TheGameInfo = TheChallengeGameInfo;
12531253 }
1254+ // TheSuperHackers @info stm 18/12/2025 TheGameInfo is nullptr when you load a savegame of a regular campaign mission
12541255 }
12551256
12561257 // On a NEW game, we need to copy the superweapon restrictions from the game info to here
You can’t perform that action at this time.
0 commit comments