aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:41:51 +0600
committerMarisa-Chan2014-12-19 16:41:51 +0600
commit897ecc190fc7233fa45082e24b97ff37bab1bc0c (patch)
tree2cbae3765267e9c80dd98b475eb074da7b1f9259 /engines
parentedf35284977d0b666eb796d028ea54278c9736c9 (diff)
downloadscummvm-rg350-897ecc190fc7233fa45082e24b97ff37bab1bc0c.tar.gz
scummvm-rg350-897ecc190fc7233fa45082e24b97ff37bab1bc0c.tar.bz2
scummvm-rg350-897ecc190fc7233fa45082e24b97ff37bab1bc0c.zip
ZVISION: Fix uninitialized scalar field (CID 1257074)
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/actions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index a5cc37a2f7..7e3a0667aa 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -594,6 +594,7 @@ bool ActionPreloadAnimation::execute() {
ActionUnloadAnimation::ActionUnloadAnimation(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _key = 0;
sscanf(line.c_str(), "%u", &_key);
}