diff options
author | Marisa-Chan | 2014-12-19 17:05:03 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 17:05:03 +0600 |
commit | 2cb541c6511d39e7814f38c1b6e1cc64b7589671 (patch) | |
tree | 2c2f0512c718a27075c73cbc57a4af5e3eda2dd4 /engines | |
parent | 7609b6d866576de9a70aadfb17895cfd30393eb8 (diff) | |
download | scummvm-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.cpp | 3 |
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); |