diff options
author | Eugene Sandulenko | 2009-01-07 20:18:38 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-07 20:18:38 +0000 |
commit | 1395d3ba639ac543dc8f982aafb99781cdb4afbb (patch) | |
tree | fa5df998b01257391957538502ce6370d3a708fd /engines | |
parent | 2f7ef3132defeac69f17a2741eb3eb8d07dfa355 (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/saveload.cpp | 2 |
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++) |