From 590bd33a9eca63118cdf71b907a9576bedbce4ba Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 1 Jan 2007 04:35:27 +0000 Subject: Fix bug #1624767 - FF: save games will not load. svn-id: r24960 --- engines/agos/script_e2.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/agos/script_e2.cpp') 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() { -- cgit v1.2.3