Change getNumBoxes() to properly read the full uint16 box count (shouldn't affect anything, though)

svn-id: r26678
This commit is contained in:
Max Horn 2007-04-29 18:22:07 +00:00
parent 21e5311650
commit 3821ef456a

View File

@ -443,7 +443,9 @@ byte ScummEngine::getNumBoxes() {
if (!ptr)
return 0;
if (_game.version == 8)
return (byte) READ_LE_UINT32(ptr);
return (byte)READ_LE_UINT32(ptr);
else if (_game.features >= 5)
return (byte)READ_LE_UINT16(ptr);
else
return ptr[0];
}