aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:34:11 +0600
committerMarisa-Chan2014-12-19 16:34:11 +0600
commitdae76a76c788950a05b827cb58cf3bd3f4bb8c32 (patch)
treeeff6943aadecbd3fecd165260459c8a2fecc9c1b
parent3b83e82e6f755dd45da8f063f3af831872d6ffdc (diff)
downloadscummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.tar.gz
scummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.tar.bz2
scummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.zip
ZVISION: Fix uninitialized scalar field (CID 1257068)
-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 a030f6ce07..31ba2cc5c1 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -239,6 +239,8 @@ bool ActionDisableControl::execute() {
ActionDisableVenus::ActionDisableVenus(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _key = 0;
+
sscanf(line.c_str(), "%d", &_key);
}