aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();