aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:22:57 +0600
committerMarisa-Chan2014-12-19 16:22:57 +0600
commitf8c1b1eb28e3976fda19547230c7a8b70f31244d (patch)
tree0c98cf74724792d3634bc8c215c9107fecd4da6c
parent56f7be8ab62315a3439d3f4aad9b85a294eac2c9 (diff)
downloadscummvm-rg350-f8c1b1eb28e3976fda19547230c7a8b70f31244d.tar.gz
scummvm-rg350-f8c1b1eb28e3976fda19547230c7a8b70f31244d.tar.bz2
scummvm-rg350-f8c1b1eb28e3976fda19547230c7a8b70f31244d.zip
ZVISION: Fix uninitialized scalar field (CID 1257062)
-rw-r--r--engines/zvision/scripting/actions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 2f7103bf18..a9b19eaf2b 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -95,6 +95,9 @@ bool ActionAssign::execute() {
ActionAttenuate::ActionAttenuate(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _key = 0;
+ _attenuation = 0;
+
sscanf(line.c_str(), "%u, %d", &_key, &_attenuation);
}