aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-13 22:11:16 -0500
committerPaul Gilbert2013-12-13 22:11:16 -0500
commitb80d0e9aa3c6d7fe3706a7e634623559a36e4548 (patch)
tree146834d9fe1ee6604685394f8bba4dbcfbb57a98 /engines/voyeur
parentf2b8c518811998bd05b59c332092dc6fa28024b4 (diff)
downloadscummvm-rg350-b80d0e9aa3c6d7fe3706a7e634623559a36e4548.tar.gz
scummvm-rg350-b80d0e9aa3c6d7fe3706a7e634623559a36e4548.tar.bz2
scummvm-rg350-b80d0e9aa3c6d7fe3706a7e634623559a36e4548.zip
VOYEUR: Fix field intiialisation in getStateInfo
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/files_threads.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp
index 40febd75ae..67df87fd78 100644
--- a/engines/voyeur/files_threads.cpp
+++ b/engines/voyeur/files_threads.cpp
@@ -35,6 +35,7 @@ CMapResource *ThreadResource::_cmd14Pal = NULL;
ThreadResource::ThreadResource(BoltFilesState &state, const byte *src):
_vm(state._vm) {
_flags = src[8];
+ _ctlPtr = nullptr;
}
void ThreadResource::initThreadStruct(int idx, int id) {
@@ -114,7 +115,7 @@ bool ThreadResource::getStateInfo() {
_parseCount = READ_LE_UINT16(baseP + 4);
_field28E = getDataOffset();
- _field28E += READ_LE_UINT32(baseP + 6) / 2;
+ _field28E += (READ_LE_UINT32(baseP + 6) / 2) << 1;
_field4A = baseP + 10;