From e28f8a5d8f3de8e6c21be6a494ab91aaf1602216 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Fri, 19 Dec 2014 15:45:54 +0600 Subject: [PATCH] ZVISION: Fix uninitialized scalar field (CID 1257059) --- 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 62412e68f80..2f7103bf187 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -857,6 +857,8 @@ bool ActionSetScreen::execute() { ActionSetVenus::ActionSetVenus(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _key = 0; + sscanf(line.c_str(), "%d", &_key); }