mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
ZVISION: Fix uninitialized scalar field (CID 1257084)
This commit is contained in:
parent
d6e3cea087
commit
7e3c270e49
@ -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…
Reference in New Issue
Block a user