aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:02:22 +0600
committerMarisa-Chan2014-12-19 17:02:22 +0600
commit5db4e02f9a5bc756807102e76374c493b80cc028 (patch)
tree1444d9037e5d35aad9445dae24b07e4d0c80ba73 /engines/zvision/scripting
parented66fbefdf0bb6428ea82c64e9dece0559132f4a (diff)
downloadscummvm-rg350-5db4e02f9a5bc756807102e76374c493b80cc028.tar.gz
scummvm-rg350-5db4e02f9a5bc756807102e76374c493b80cc028.tar.bz2
scummvm-rg350-5db4e02f9a5bc756807102e76374c493b80cc028.zip
ZVISION: Fix uninitialized scalar field (CID 1257082)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r--engines/zvision/scripting/actions.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 6e6674d755..b08a7f3c85 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -938,8 +938,14 @@ bool ActionStop::execute() {
ActionStreamVideo::ActionStreamVideo(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
+ _x1 = 0;
+ _x2 = 0;
+ _y1 = 0;
+ _y2 = 0;
+ _flags = 0;
+
char fileName[25];
- uint skipline; //skipline - render video with skip every second line, not skippable.
+ uint skipline = 0; //skipline - render video with skip every second line, not skippable.
sscanf(line.c_str(), "%25s %u %u %u %u %u %u", fileName, &_x1, &_y1, &_x2, &_y2, &_flags, &skipline);