mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-06 16:37:42 +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:
parent
00d7997d0a
commit
91d5439f25
@ -182,7 +182,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (entry.key.combinedKey == wantedKey.combinedKey)
|
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)
|
else if (entry.key.combinedKey > wantedKey.combinedKey)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user