From 5d5496f1ad895297cede723b3c96b513263f82ed Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 22 Dec 2023 13:06:10 +0100 Subject: [PATCH] Update MDLMaterialLoader.cpp --- code/AssetLib/MDL/MDLMaterialLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/MDL/MDLMaterialLoader.cpp b/code/AssetLib/MDL/MDLMaterialLoader.cpp index 57ed6c7b9..f8dafdb3e 100644 --- a/code/AssetLib/MDL/MDLMaterialLoader.cpp +++ b/code/AssetLib/MDL/MDLMaterialLoader.cpp @@ -123,7 +123,7 @@ aiColor4D MDLImporter::ReplaceTextureWithColor(const aiTexture *pcTexture) { // Read a texture from a MDL3 file void MDLImporter::CreateTextureARGB8_3DGS_MDL3(const unsigned char *szData) { const MDL::Header *pcHeader = (const MDL::Header *)mBuffer; //the endianness is already corrected in the InternReadFile_3DGS_MDL345 function - const size_t len = pcHeader->skinwidth * pcHeader->skinheight); + const size_t len = pcHeader->skinwidth * pcHeader->skinheight; VALIDATE_FILE_SIZE(szData + len); // allocate a new texture object