ZVISION: Fix uninitialized scalar field (CID 1257084)

This commit is contained in:
Marisa-Chan 2014-12-19 17:03:39 +06:00
parent d6e3cea087
commit 7e3c270e49

View File

@ -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);