mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
Slight bugfix in the object iteration inside getSierraGameId()
svn-id: r49110
This commit is contained in:
parent
264fde962b
commit
678411ae5e
@ -232,7 +232,8 @@ Common::String getSierraGameId(ResourceManager *resMan) {
|
||||
exportsOffset = READ_UINT16(script000->_buf + curOffset + 2);
|
||||
break;
|
||||
}
|
||||
} while (objType != 0);
|
||||
curOffset += objLength - 4;
|
||||
} while (objType != 0 && curOffset < script->size - 2);
|
||||
|
||||
// The game object is the first export. Script 0 is always at segment 1
|
||||
reg_t gameObj = make_reg(1, exportsOffset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user