aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;