aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-21 00:05:38 -0500
committerRichieSams2013-09-21 00:05:38 -0500
commit51fc627c05e4fdbd240c75399a249ce8378e999a (patch)
treefe0b9850a8cd8f53fb084be43fc773deb9429dca
parentca80deea62a0ca675ec53148e0e3237e716c5082 (diff)
downloadscummvm-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.cpp3
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();