diff options
author | Marisa-Chan | 2014-12-19 16:22:57 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:22:57 +0600 |
commit | f8c1b1eb28e3976fda19547230c7a8b70f31244d (patch) | |
tree | 0c98cf74724792d3634bc8c215c9107fecd4da6c | |
parent | 56f7be8ab62315a3439d3f4aad9b85a294eac2c9 (diff) | |
download | scummvm-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.cpp | 3 |
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); } |