2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-06 08:27:43 +00:00

ObjLoading: Fix not respecting that IPak index entries specify an offset to the data section and not a file offset

This commit is contained in:
Jan 2020-02-08 22:53:33 +01:00
parent 00d7997d0a
commit 91d5439f25

View File

@ -182,7 +182,7 @@ public:
{
if (entry.key.combinedKey == wantedKey.combinedKey)
{
return m_stream_manager.OpenStream(entry.offset, entry.size);
return m_stream_manager.OpenStream(m_data_section->offset + entry.offset, entry.size);
}
else if (entry.key.combinedKey > wantedKey.combinedKey)
{