mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-06 12:15:37 +00:00
Fix iwiwriter8 using size of header for iwi27
This commit is contained in:
1 parent
1cc5be2f64
commit
8fbda2d1bb
1 file changed
+1
-1
@@ -106,7 +106,7 @@ void IwiWriter::DumpImage(std::ostream& stream, Texture* texture)
|
||||
const auto mipLevelSize = texture->GetSizeOfMipLevel(currentMipLevel) * texture->GetFaceCount();
|
||||
currentFileSize += mipLevelSize;
|
||||
|
||||
if (currentMipLevel < static_cast<int>(std::extent<decltype(iwi27::IwiHeader::fileSizeForPicmip)>::value))
|
||||
if (currentMipLevel < static_cast<int>(std::extent<decltype(IwiHeader::fileSizeForPicmip)>::value))
|
||||
header.fileSizeForPicmip[currentMipLevel] = currentFileSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user