Merge branch 'esm4-dataSize' into 'master'
Fix read issue with ESM4 compressed data Closes #9447 See merge request OpenMW/openmw!5728
This commit is contained in:
@@ -538,7 +538,7 @@ namespace ESM4
|
||||
mStream->read(compressed.data(), recordSize);
|
||||
mSavedStream = std::move(mStream);
|
||||
|
||||
mCtx.recordHeader.record.dataSize = uncompressedSize - sizeof(uncompressedSize);
|
||||
mCtx.recordHeader.record.dataSize = uncompressedSize;
|
||||
|
||||
auto memoryStreamPtr = decompress(position, compressed, uncompressedSize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user