aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:05:03 +0600
committerMarisa-Chan2014-12-19 17:05:03 +0600
commit2cb541c6511d39e7814f38c1b6e1cc64b7589671 (patch)
tree2c2f0512c718a27075c73cbc57a4af5e3eda2dd4 /engines
parent7609b6d866576de9a70aadfb17895cfd30393eb8 (diff)
downloadscummvm-rg350-2cb541c6511d39e7814f38c1b6e1cc64b7589671.tar.gz
scummvm-rg350-2cb541c6511d39e7814f38c1b6e1cc64b7589671.tar.bz2
scummvm-rg350-2cb541c6511d39e7814f38c1b6e1cc64b7589671.zip
ZVISION: Fix uninitialized scalar field (CID 1257087)
Diffstat (limited to 'engines')
-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 5274637ca0..fd843276c0 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -359,6 +359,9 @@ bool ActionFlushMouseEvents::execute() {
ActionInventory::ActionInventory(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _type = -1;
+ _key = 0;
+
char buf[25];
sscanf(line.c_str(), "%25s %d", buf, &_key);