diff --git a/src/ObjLoading/Image/IwiLoader.cpp b/src/ObjLoading/Image/IwiLoader.cpp index 3b33f88f..74e5ede2 100644 --- a/src/ObjLoading/Image/IwiLoader.cpp +++ b/src/ObjLoading/Image/IwiLoader.cpp @@ -85,7 +85,7 @@ Texture* IwiLoader::LoadIwi27(FileAPI::IFile* file) for (int currentMipLevel = mipMapCount - 1; currentMipLevel >= 0; currentMipLevel--) { - const size_t sizeOfMipLevel = texture->GetSizeOfMipLevel(currentMipLevel); + const size_t sizeOfMipLevel = texture->GetSizeOfMipLevel(currentMipLevel) * texture->GetFaceCount(); currentFileSize += sizeOfMipLevel; if (currentMipLevel < static_cast(_countof(iwi27::IwiHeader::fileSizeForPicmip))