diff options
author | Johannes Schickel | 2006-07-27 20:30:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-07-27 20:30:51 +0000 |
commit | ee5621137fa3a0f668738159450b03fea68a93e3 (patch) | |
tree | 9a207b1d2a844f838b3ff22443c64c0860f9db61 /engines/kyra/saveload.cpp | |
parent | 8a0ec2a3e5f042e38964f20a82429f2e74936eca (diff) | |
download | scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.tar.gz scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.tar.bz2 scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.zip |
- renaming all opcodes from cmd_* to c1_*
- changing ScriptHelper functions so it will be useable for kyra2 and kyra3 too
- unbreaking savegames (increasing the VERSION number since the game flags table got resized to be useable for kyra3)
svn-id: r23612
Diffstat (limited to 'engines/kyra/saveload.cpp')
-rw-r--r-- | engines/kyra/saveload.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp index 13caa36ed9..d34dc66097 100644 --- a/engines/kyra/saveload.cpp +++ b/engines/kyra/saveload.cpp @@ -30,7 +30,7 @@ #include "kyra/screen.h" #include "kyra/resource.h" -#define CURRENT_VERSION 5 +#define CURRENT_VERSION 6 namespace Kyra { void KyraEngine::loadGame(const char *fileName) { @@ -145,8 +145,9 @@ void KyraEngine::loadGame(const char *fileName) { } _timerNextRun = 0; + memset(_flagsTable, 0, sizeof(_flagsTable)); uint32 flagsSize = in->readUint32BE(); - assert(flagsSize == sizeof(_flagsTable)); + assert(flagsSize <= sizeof(_flagsTable)); in->read(_flagsTable, flagsSize); for (int i = 0; i < _roomTableSize; ++i) { |