mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-01 22:47:26 +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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user