aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:31:33 +0600
committerMarisa-Chan2014-12-19 16:31:33 +0600
commitefb93552233f13128a43854a9d2ed97653a04075 (patch)
tree1ce0f81b6920069731596b2cec61f543d6d00c65
parent044f2521542617d55c9cd1802f2cab7f9bccb618 (diff)
downloadscummvm-rg350-efb93552233f13128a43854a9d2ed97653a04075.tar.gz
scummvm-rg350-efb93552233f13128a43854a9d2ed97653a04075.tar.bz2
scummvm-rg350-efb93552233f13128a43854a9d2ed97653a04075.zip
ZVISION: Fix uninitialized scalar field (CID 1257065)
-rw-r--r--engines/zvision/scripting/actions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 8ae1cd733b..f2cfbc0684 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -132,6 +132,14 @@ bool ActionChangeLocation::execute() {
ActionCrossfade::ActionCrossfade(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _keyOne = 0;
+ _keyTwo = 0;
+ _oneStartVolume = 0;
+ _twoStartVolume = 0;
+ _oneEndVolume = 0;
+ _twoEndVolume = 0;
+ _timeInMillis = 0;
+
sscanf(line.c_str(),
"%u %u %d %d %d %d %d",
&_keyOne, &_keyTwo, &_oneStartVolume, &_twoStartVolume, &_oneEndVolume, &_twoEndVolume, &_timeInMillis);