SCI: Fix view detection in Hoyle 2

svn-id: r47154
This commit is contained in:
Walter van Niftrik 2010-01-08 13:45:44 +00:00
parent cac3510b67
commit 3dda1c8073

View File

@ -1628,6 +1628,10 @@ ViewType ResourceManager::detectViewType() {
uint16 height = READ_LE_UINT16(res->data + offset);
offset += 6;
// To improve the heuristic, we skip very small views
if (height < 10)
continue;
// Check that the RLE data stays within bounds
int y;
for (y = 0; y < height; y++) {