diff options
author | Marisa-Chan | 2014-12-19 17:04:04 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 17:04:04 +0600 |
commit | 7a0b5982b133c8ef5ed87cd1418ea28cf7da96fb (patch) | |
tree | 85749328d65e99166496be5d6e7686e39b299c5b /engines/zvision/scripting | |
parent | 7e3c270e49c36cb7290955ded4dc4588f763797a (diff) | |
download | scummvm-rg350-7a0b5982b133c8ef5ed87cd1418ea28cf7da96fb.tar.gz scummvm-rg350-7a0b5982b133c8ef5ed87cd1418ea28cf7da96fb.tar.bz2 scummvm-rg350-7a0b5982b133c8ef5ed87cd1418ea28cf7da96fb.zip |
ZVISION: Fix uninitialized scalar field (CID 1257085)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 63033886c6..60d05fb063 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -832,6 +832,9 @@ bool ActionRestoreGame::execute() { ActionRotateTo::ActionRotateTo(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _time = 0; + _toPos = 0; + sscanf(line.c_str(), "%d, %d", &_toPos, &_time); } |