diff options
author | Marisa-Chan | 2014-12-19 17:03:39 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 17:03:39 +0600 |
commit | 7e3c270e49c36cb7290955ded4dc4588f763797a (patch) | |
tree | 10d427c8d0d55c8c62d47e02e5bb5707898ec6fa /engines | |
parent | d6e3cea087bd10619f9bad305a03f1517d714687 (diff) | |
download | scummvm-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.cpp | 9 |
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); |