diff options
author | RichieSams | 2013-09-21 00:05:38 -0500 |
---|---|---|
committer | RichieSams | 2013-09-21 00:05:38 -0500 |
commit | 51fc627c05e4fdbd240c75399a249ce8378e999a (patch) | |
tree | fe0b9850a8cd8f53fb084be43fc773deb9429dca | |
parent | ca80deea62a0ca675ec53148e0e3237e716c5082 (diff) | |
download | scummvm-rg350-51fc627c05e4fdbd240c75399a249ce8378e999a.tar.gz scummvm-rg350-51fc627c05e4fdbd240c75399a249ce8378e999a.tar.bz2 scummvm-rg350-51fc627c05e4fdbd240c75399a249ce8378e999a.zip |
ZVISION: Clear out the current state table values before loading any from a save file
-rw-r--r-- | engines/zvision/script_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 4b4e0f74fe..b968e51213 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -390,6 +390,9 @@ void ScriptManager::serializeStateTable(Common::WriteStream *stream) { } void ScriptManager::deserializeStateTable(Common::SeekableReadStream *stream) { + // Clear out the current table values + _globalState.clear(); + // Read the number of key/value pairs uint32 numberOfPairs = stream->readUint32LE(); |