diff options
author | Marisa-Chan | 2014-12-19 16:35:15 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 16:35:15 +0600 |
commit | 9c2782a6800ada4330d2ae4f4087c7b13fbf851b (patch) | |
tree | edb862ed64f64b6ac0bc9012ccd3238f95debb61 /engines | |
parent | dae76a76c788950a05b827cb58cf3bd3f4bb8c32 (diff) | |
download | scummvm-rg350-9c2782a6800ada4330d2ae4f4087c7b13fbf851b.tar.gz scummvm-rg350-9c2782a6800ada4330d2ae4f4087c7b13fbf851b.tar.bz2 scummvm-rg350-9c2782a6800ada4330d2ae4f4087c7b13fbf851b.zip |
ZVISION: Fix uninitialized scalar field (CID 1257069)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 31ba2cc5c1..5689f3e2aa 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -119,6 +119,12 @@ bool ActionAttenuate::execute() { ActionChangeLocation::ActionChangeLocation(ZVision *engine, int32 slotkey, const Common::String &line) : ResultAction(engine, slotkey) { + _world = 'g'; + _room = 'a'; + _node = 'r'; + _view = 'y'; + _offset = 0; + sscanf(line.c_str(), "%c, %c, %c%c, %u", &_world, &_room, &_node, &_view, &_offset); } |