From b80d0e9aa3c6d7fe3706a7e634623559a36e4548 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 13 Dec 2013 22:11:16 -0500 Subject: VOYEUR: Fix field intiialisation in getStateInfo --- engines/voyeur/files_threads.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/voyeur') 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; -- cgit v1.2.3