aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);