aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2009-01-07 20:18:38 +0000
committerEugene Sandulenko2009-01-07 20:18:38 +0000
commit1395d3ba639ac543dc8f982aafb99781cdb4afbb (patch)
treefa5df998b01257391957538502ce6370d3a708fd
parent2f7ef3132defeac69f17a2741eb3eb8d07dfa355 (diff)
downloadscummvm-rg350-1395d3ba639ac543dc8f982aafb99781cdb4afbb.tar.gz
scummvm-rg350-1395d3ba639ac543dc8f982aafb99781cdb4afbb.tar.bz2
scummvm-rg350-1395d3ba639ac543dc8f982aafb99781cdb4afbb.zip
Fix bug #2451381: "AGI: -x option (or loading from launcher) breaks some games"
svn-id: r35771
-rw-r--r--engines/agi/saveload.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index a3c3f0a035..375184877a 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -297,6 +297,8 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) {
return errBadFileOpen;
}
+ strncpy(_game.id, loadId, 8);
+
for (i = 0; i < MAX_FLAGS; i++)
_game.flags[i] = in->readByte();
for (i = 0; i < MAX_VARS; i++)