aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-01-01 04:35:27 +0000
committerTravis Howell2007-01-01 04:35:27 +0000
commit590bd33a9eca63118cdf71b907a9576bedbce4ba (patch)
treed5433a152d7c8a2373e3728f72a05e0aeb8ffb04 /engines/agos/script_e2.cpp
parent84bc1e62cacebec3e953a06897adedf28338bf45 (diff)
downloadscummvm-rg350-590bd33a9eca63118cdf71b907a9576bedbce4ba.tar.gz
scummvm-rg350-590bd33a9eca63118cdf71b907a9576bedbce4ba.tar.bz2
scummvm-rg350-590bd33a9eca63118cdf71b907a9576bedbce4ba.zip
Fix bug #1624767 - FF: save games will not load.
svn-id: r24960
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index e443a91589..31d524fee3 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -131,9 +131,13 @@ void AGOSEngine::oe2_pObj() {
void AGOSEngine::oe2_loadGame() {
// 89: load game
uint16 stringId = getNextStringID();
-
debug(0, "oe1_loadGame: stub (%s)", (const char *)getStringPtrByID(stringId));
- loadGame((const char *)getStringPtrByID(stringId));
+
+ if (!scumm_stricmp(getFileName(GAME_RESTFILE), (const char *)getStringPtrByID(stringId))) {
+ loadGame(getFileName(GAME_RESTFILE), true);
+ } else {
+ loadGame((const char *)getStringPtrByID(stringId));
+ }
}
void AGOSEngine::oe2_drawItem() {