aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
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() {