diff options
author | Marisa-Chan | 2014-12-19 16:34:11 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:34:11 +0600 |
commit | dae76a76c788950a05b827cb58cf3bd3f4bb8c32 (patch) | |
tree | eff6943aadecbd3fecd165260459c8a2fecc9c1b /engines | |
parent | 3b83e82e6f755dd45da8f063f3af831872d6ffdc (diff) | |
download | scummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.tar.gz scummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.tar.bz2 scummvm-rg350-dae76a76c788950a05b827cb58cf3bd3f4bb8c32.zip |
ZVISION: Fix uninitialized scalar field (CID 1257068)
Diffstat (limited to 'engines')
-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 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); } |