Skip to content

Commit 2b17f11

Browse files
committed
fix: Fix incorrect argument used for isInSaveDirectory()
- Introduced by: #1808 - Resolves #1847
1 parent 35b3f01 commit 2b17f11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ void GameLogic::loadMapINI( AsciiString mapName )
21552155
// the pristine map name string in order to manipulate and load the right map.ini
21562156
// for that map from it's original location
21572157
//
2158-
const char* pristineMapName = TheGameState->isInSaveDirectory(filename)
2158+
const char* pristineMapName = TheGameState->isInSaveDirectory(mapName.str())
21592159
? TheGameState->getSaveGameInfo()->pristineMapName.str()
21602160
: mapName.str();
21612161

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ void GameLogic::loadMapINI( AsciiString mapName )
24722472
// the pristine map name string in order to manipulate and load the right map.ini
24732473
// for that map from it's original location
24742474
//
2475-
const char* pristineMapName = TheGameState->isInSaveDirectory(filename)
2475+
const char* pristineMapName = TheGameState->isInSaveDirectory(mapName.str())
24762476
? TheGameState->getSaveGameInfo()->pristineMapName.str()
24772477
: mapName.str();
24782478

0 commit comments

Comments
 (0)