diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pink/pink.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index bddc8505d2..2d8240cdf3 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -261,7 +261,7 @@ void PinkEngine::setCursor(uint cursorIndex) { } Common::Error PinkEngine::loadGameState(int slot) { - Common::SeekableReadStream *in = _saveFileMan->openForLoading(generateSaveName(slot, _desc.gameId)); + Common::SeekableReadStream *in = _saveFileMan->openForLoading(generateSaveName(slot, _targetName.c_str())); if (!in) return Common::kNoGameDataFoundError; @@ -284,7 +284,7 @@ bool PinkEngine::canLoadGameStateCurrently() { } Common::Error PinkEngine::saveGameState(int slot, const Common::String &desc) { - Common::OutSaveFile *out = _saveFileMan->openForSaving(generateSaveName(slot, _desc.gameId)); + Common::OutSaveFile *out = _saveFileMan->openForSaving(generateSaveName(slot, _targetName.c_str())); if (!out) return Common::kUnknownError; |