ZVISION: Fix uninitialized scalar field (CID 1257084)
This commit is contained in:
parent
d6e3cea087
commit
7e3c270e49
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue