diff options
author | Marisa-Chan | 2014-12-19 16:32:27 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:32:27 +0600 |
commit | b96c58188110d7f45e4733a0a010c82f6ec62a25 (patch) | |
tree | 41e0e9a1a0461f77494d2427a3be8e0d628d82a9 /engines | |
parent | efb93552233f13128a43854a9d2ed97653a04075 (diff) | |
download | scummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.tar.gz scummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.tar.bz2 scummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.zip |
ZVISION: Fix uninitialized scalar field (CID 1257066)
Diffstat (limited to 'engines')
-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 f2cfbc0684..5b27f52aa5 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -57,6 +57,9 @@ namespace ZVision { ActionAdd::ActionAdd(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _key = 0; + _value = 0; + sscanf(line.c_str(), "%u,%d", &_key, &_value); } |