diff options
author | Marisa-Chan | 2014-12-19 15:43:46 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:00:57 +0600 |
commit | f9946b726fe7ea5251fe44a77f8dab296052b744 (patch) | |
tree | feea587d711eeed6f2a092ead0969bb60565520d /engines/zvision/scripting | |
parent | 8c896f5da4eaa4cd95f9ff4c60efa43542cfe557 (diff) | |
download | scummvm-rg350-f9946b726fe7ea5251fe44a77f8dab296052b744.tar.gz scummvm-rg350-f9946b726fe7ea5251fe44a77f8dab296052b744.tar.bz2 scummvm-rg350-f9946b726fe7ea5251fe44a77f8dab296052b744.zip |
ZVISION: Fix uninitialized scalar field (CID 1257057)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 1d9b4d7be1..31bd681b3b 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -654,11 +654,15 @@ bool ActionQuit::execute() { ActionRegion::ActionRegion(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _delay = 0; + _type = 0; + _unk1 = 0; + _unk2 = 0; char art[64]; char custom[64]; - int32 x1, x2, y1, y2; + int32 x1 = 0, x2 = 0, y1 = 0, y2 = 0; sscanf(line.c_str(), "%s %d %d %d %d %hu %hu %hu %hu %s", art, &x1, &y1, &x2, &y2, &_delay, &_type, &_unk1, &_unk2, custom); _art = Common::String(art); |