From 55152e40554003f965e8fa4bca76a720bbb61de7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 22 Apr 2007 16:06:00 +0000 Subject: Fix for loading savegames from the command line. svn-id: r26567 --- engines/agi/saveload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agi/saveload.cpp') diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index 4f25b58cc5..94701baa32 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -215,7 +215,7 @@ int AgiEngine::saveGame(const char *fileName, const char *description) { return errOK; } -int AgiEngine::loadGame(const char *fileName) { +int AgiEngine::loadGame(const char *fileName, bool checkId) { char description[31], saveVersion, loadId[8]; int i, vtEntries = MAX_VIEWTABLE; uint8 t; @@ -251,7 +251,7 @@ int AgiEngine::loadGame(const char *fileName) { _game.state = in->readByte(); in->read(loadId, 8); - if (strcmp(loadId, _game.id)) { + if (strcmp(loadId, _game.id) && checkId) { delete in; warning("This save seems to be from a different AGI game (save from %s, running %s), not loaded", loadId, _game.id); return errBadFileOpen; -- cgit v1.2.3