From 2cb541c6511d39e7814f38c1b6e1cc64b7589671 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Fri, 19 Dec 2014 17:05:03 +0600 Subject: ZVISION: Fix uninitialized scalar field (CID 1257087) --- engines/zvision/scripting/actions.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3