diff options
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r-- | engines/kyra/resource.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 04bf888d3c..cade116df5 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -1302,6 +1302,7 @@ bool CompLoaderInsHof::loadFile(CompFileMap &loadTo) const { } } + FileExpander exp; CompFileEntry newEntry; uint32 insize = 0; uint32 outsize = 0; @@ -1343,7 +1344,7 @@ bool CompLoaderInsHof::loadFile(CompFileMap &loadTo) const { tmpFile.seek(1); tmpFile.read(inbuffer + inPart1, inPart2); inPart2 = 0; - FileExpander().process(outbuffer, inbuffer, outsize, insize); + exp.process(outbuffer, inbuffer, outsize, insize); delete[] inbuffer; inbuffer = 0; newEntry.data = outbuffer; @@ -1415,7 +1416,7 @@ bool CompLoaderInsHof::loadFile(CompFileMap &loadTo) const { } else { tmpFile.read(inbuffer, insize); inPart2 = 0; - FileExpander().process(outbuffer, inbuffer, outsize, insize); + exp.process(outbuffer, inbuffer, outsize, insize); delete[] inbuffer; inbuffer = 0; newEntry.data = outbuffer; |