diff options
author | Marisa-Chan | 2014-12-19 17:03:07 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 17:03:07 +0600 |
commit | d6e3cea087bd10619f9bad305a03f1517d714687 (patch) | |
tree | 8e2e9f3112930a4a98b611dcbba19915fefe5196 /engines/zvision/scripting | |
parent | 5db4e02f9a5bc756807102e76374c493b80cc028 (diff) | |
download | scummvm-rg350-d6e3cea087bd10619f9bad305a03f1517d714687.tar.gz scummvm-rg350-d6e3cea087bd10619f9bad305a03f1517d714687.tar.bz2 scummvm-rg350-d6e3cea087bd10619f9bad305a03f1517d714687.zip |
ZVISION: Fix uninitialized scalar field (CID 1257083)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index b08a7f3c85..dbbb605e43 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -1050,9 +1050,11 @@ bool ActionTimer::execute() { ActionTtyText::ActionTtyText(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _delay = 0; + char filename[64]; - int32 x1, y1, x2, y2; - sscanf(line.c_str(), "%d %d %d %d %s %u", &x1, &y1, &x2, &y2, filename, &_delay); + int32 x1 = 0, y1 = 0, x2 = 0, y2 = 0; + sscanf(line.c_str(), "%d %d %d %d %64s %u", &x1, &y1, &x2, &y2, filename, &_delay); _r = Common::Rect(x1, y1, x2, y2); _filename = Common::String(filename); } |