diff options
author | Marisa-Chan | 2014-12-19 16:38:34 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:38:34 +0600 |
commit | 8278ed6022f4b172c6173866224071f381a12bd5 (patch) | |
tree | 52bae14324ceabf2c7899a740d488050ec19e1a9 /engines/zvision/scripting | |
parent | ea2ad625ff780750213821d25aedfe4e46027755 (diff) | |
download | scummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.tar.gz scummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.tar.bz2 scummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.zip |
ZVISION: Fix uninitialized scalar field (CID 1257071)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index b569b1315a..a14fa37e4b 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -319,6 +319,8 @@ bool ActionDistort::execute() { ActionEnableControl::ActionEnableControl(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _key = 0; + sscanf(line.c_str(), "%u", &_key); } |