aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:04:26 +0600
committerMarisa-Chan2014-12-19 17:04:26 +0600
commit7609b6d866576de9a70aadfb17895cfd30393eb8 (patch)
treede059c00421d10634c19dc3060dc191e2d73dffa
parent7a0b5982b133c8ef5ed87cd1418ea28cf7da96fb (diff)
downloadscummvm-rg350-7609b6d866576de9a70aadfb17895cfd30393eb8.tar.gz
scummvm-rg350-7609b6d866576de9a70aadfb17895cfd30393eb8.tar.bz2
scummvm-rg350-7609b6d866576de9a70aadfb17895cfd30393eb8.zip
ZVISION: Fix uninitialized scalar field (CID 1257086)
-rw-r--r--engines/zvision/scripting/actions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 60d05fb063..5274637ca0 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -232,6 +232,8 @@ bool ActionDelayRender::execute() {
ActionDisableControl::ActionDisableControl(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _key = 0;
+
sscanf(line.c_str(), "%u", &_key);
}