From 91d5439f257ff6eb9ed202527217dba11d51190d Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 8 Feb 2020 22:53:33 +0100 Subject: [PATCH] ObjLoading: Fix not respecting that IPak index entries specify an offset to the data section and not a file offset --- src/ObjLoading/ObjContainer/IPak/IPak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObjLoading/ObjContainer/IPak/IPak.cpp b/src/ObjLoading/ObjContainer/IPak/IPak.cpp index eab5d965..f0b72792 100644 --- a/src/ObjLoading/ObjContainer/IPak/IPak.cpp +++ b/src/ObjLoading/ObjContainer/IPak/IPak.cpp @@ -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) {