aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:03:39 +0600
committerMarisa-Chan2014-12-19 17:03:39 +0600
commit7e3c270e49c36cb7290955ded4dc4588f763797a (patch)
tree10d427c8d0d55c8c62d47e02e5bb5707898ec6fa /engines
parentd6e3cea087bd10619f9bad305a03f1517d714687 (diff)
downloadscummvm-rg350-7e3c270e49c36cb7290955ded4dc4588f763797a.tar.gz
scummvm-rg350-7e3c270e49c36cb7290955ded4dc4588f763797a.tar.bz2
scummvm-rg350-7e3c270e49c36cb7290955ded4dc4588f763797a.zip
ZVISION: Fix uninitialized scalar field (CID 1257084)
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/actions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index dbbb605e43..63033886c6 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -675,6 +675,15 @@ bool ActionPlayAnimation::execute() {
ActionPlayPreloadAnimation::ActionPlayPreloadAnimation(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _controlKey = 0;
+ _x1 = 0;
+ _y1 = 0;
+ _x2 = 0;
+ _y2 = 0;
+ _startFrame = 0;
+ _endFrame = 0;
+ _loopCount = 0;
+
sscanf(line.c_str(),
"%u %u %u %u %u %u %u %u",
&_controlKey, &_x1, &_y1, &_x2, &_y2, &_startFrame, &_endFrame, &_loopCount);