mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
Fix signed/unsigned issue with IW3 AssetLoaderGfxImage
This commit is contained in:
parent
e324c20641
commit
2c96bc5ef8
@ -95,7 +95,7 @@ bool AssetLoaderGfxImage::LoadFromRaw(const std::string& assetName, ISearchPath*
|
||||
const auto faceCount = texture->GetFaceCount();
|
||||
|
||||
size_t dataSize = 0;
|
||||
for (auto mipLevel = 0u; mipLevel < mipCount; mipLevel++)
|
||||
for (auto mipLevel = 0; mipLevel < mipCount; mipLevel++)
|
||||
dataSize += texture->GetSizeOfMipLevel(mipLevel) * faceCount;
|
||||
|
||||
auto* loadDef = static_cast<GfxImageLoadDef*>(zone->GetMemory()->Alloc(offsetof(GfxImageLoadDef, data) + dataSize));
|
||||
|
Loading…
x
Reference in New Issue
Block a user