From 8278ed6022f4b172c6173866224071f381a12bd5 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Fri, 19 Dec 2014 16:38:34 +0600 Subject: ZVISION: Fix uninitialized scalar field (CID 1257071) --- engines/zvision/scripting/actions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index b569b1315a..a14fa37e4b 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -319,6 +319,8 @@ bool ActionDistort::execute() { ActionEnableControl::ActionEnableControl(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _key = 0; + sscanf(line.c_str(), "%u", &_key); } -- cgit v1.2.3