diff options
author | Marisa-Chan | 2014-12-19 16:33:26 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:33:26 +0600 |
commit | 3b83e82e6f755dd45da8f063f3af831872d6ffdc (patch) | |
tree | be0f90a54926b35d3bde09c4c90fa41b2da6b2f5 /engines/zvision/scripting | |
parent | b96c58188110d7f45e4733a0a010c82f6ec62a25 (diff) | |
download | scummvm-rg350-3b83e82e6f755dd45da8f063f3af831872d6ffdc.tar.gz scummvm-rg350-3b83e82e6f755dd45da8f063f3af831872d6ffdc.tar.bz2 scummvm-rg350-3b83e82e6f755dd45da8f063f3af831872d6ffdc.zip |
ZVISION: Fix uninitialized scalar field (CID 1257067)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 10 | ||||
-rw-r--r-- | engines/zvision/scripting/actions.h | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 5b27f52aa5..a030f6ce07 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -602,6 +602,16 @@ bool ActionUnloadAnimation::execute() { ActionPlayAnimation::ActionPlayAnimation(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _x = 0; + _y = 0; + _x2 = 0; + _y2 = 0; + _start = 0; + _end = 0; + _loopCount = 0; + _mask = 0; + _framerate = 0; + char fileName[25]; // The two %*u are always 0 and dont seem to have a use diff --git a/engines/zvision/scripting/actions.h b/engines/zvision/scripting/actions.h index d859b1d7f1..ee761c4b30 100644 --- a/engines/zvision/scripting/actions.h +++ b/engines/zvision/scripting/actions.h @@ -266,7 +266,6 @@ public: bool execute(); private: - uint32 _key; Common::String _fileName; uint32 _x; uint32 _y; |