From d4a137528f17ef16d0d1ff703afcdfa7c71172ed Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 22 May 2013 21:43:26 +1000 Subject: VOEYUR: Now the font data pointer loads correctly --- engines/voyeur/files.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp index 7d6a11e2d3..ca54a89074 100644 --- a/engines/voyeur/files.cpp +++ b/engines/voyeur/files.cpp @@ -92,7 +92,6 @@ bool BoltFile::getBoltGroup(uint32 id) { ++_fromGroupFlag; _curLibPtr = this; _curGroupPtr = &_groups[(id >> 8) & 0xff]; - int count = _curGroupPtr->_count ? _curGroupPtr->_count : 256; if (!_curGroupPtr->_loaded) { // Load the group index @@ -104,7 +103,7 @@ bool BoltFile::getBoltGroup(uint32 id) { if ((id >> 16) != 0) { id &= 0xff00; - for (int idx = 0; idx < count; ++idx, ++id) { + for (int idx = 0; idx < _curGroupPtr->_count; ++idx, ++id) { byte *member = getBoltMember(id); assert(member); } @@ -130,7 +129,7 @@ byte *BoltFile::getBoltMember(uint32 id) { _curLibPtr = this; // Get the group, and load it's entry list if not already loaded - _curGroupPtr = &_groups[(id >> 8) & 0xff << 4]; + _curGroupPtr = &_groups[(id >> 8) & 0xff]; if (!_curGroupPtr->_loaded) _curGroupPtr->load(); -- cgit v1.2.3