aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:38:34 +0600
committerMarisa-Chan2014-12-19 16:38:34 +0600
commit8278ed6022f4b172c6173866224071f381a12bd5 (patch)
tree52bae14324ceabf2c7899a740d488050ec19e1a9
parentea2ad625ff780750213821d25aedfe4e46027755 (diff)
downloadscummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.tar.gz
scummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.tar.bz2
scummvm-rg350-8278ed6022f4b172c6173866224071f381a12bd5.zip
ZVISION: Fix uninitialized scalar field (CID 1257071)
-rw-r--r--engines/zvision/scripting/actions.cpp2
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);
}