mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 11:41:25 +00:00
Change getNumBoxes() to properly read the full uint16 box count (shouldn't affect anything, though)
svn-id: r26678
This commit is contained in:
parent
21e5311650
commit
3821ef456a
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user