aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:44:18 +0600
committerMarisa-Chan2014-12-19 16:44:18 +0600
commit7055ee77552f9126be095aac83ecfcef425f4dd3 (patch)
treea7b18da24f7345dd36ad8b5d05a725cc6bc0dba2 /engines/zvision/scripting
parent897ecc190fc7233fa45082e24b97ff37bab1bc0c (diff)
downloadscummvm-rg350-7055ee77552f9126be095aac83ecfcef425f4dd3.tar.gz
scummvm-rg350-7055ee77552f9126be095aac83ecfcef425f4dd3.tar.bz2
scummvm-rg350-7055ee77552f9126be095aac83ecfcef425f4dd3.zip
ZVISION: Fix uninitialized scalar field (CID 1257075)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r--engines/zvision/scripting/actions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 7e3a0667aa..68e9b04dd5 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -298,6 +298,13 @@ bool ActionDissolve::execute() {
ActionDistort::ActionDistort(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _distSlot = 0;
+ _speed = 0;
+ _startAngle = 60.0;
+ _endAngle = 60.0;
+ _startLineScale = 1.0;
+ _endLineScale = 1.0;
+
sscanf(line.c_str(), "%hd %hd %f %f %f %f", &_distSlot, &_speed, &_startAngle, &_endAngle, &_startLineScale, &_endLineScale);
}