aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:32:27 +0600
committerMarisa-Chan2014-12-19 16:32:27 +0600
commitb96c58188110d7f45e4733a0a010c82f6ec62a25 (patch)
tree41e0e9a1a0461f77494d2427a3be8e0d628d82a9
parentefb93552233f13128a43854a9d2ed97653a04075 (diff)
downloadscummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.tar.gz
scummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.tar.bz2
scummvm-rg350-b96c58188110d7f45e4733a0a010c82f6ec62a25.zip
ZVISION: Fix uninitialized scalar field (CID 1257066)
-rw-r--r--engines/zvision/scripting/actions.cpp3
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);
}