aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 16:35:15 +0600
committerMarisa-Chan2014-12-19 16:35:15 +0600
commit9c2782a6800ada4330d2ae4f4087c7b13fbf851b (patch)
treeedb862ed64f64b6ac0bc9012ccd3238f95debb61 /engines
parentdae76a76c788950a05b827cb58cf3bd3f4bb8c32 (diff)
downloadscummvm-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.cpp6
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);
}