Skip to content

Commit

Permalink
Update MDLMaterialLoader.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Dec 22, 2023
1 parent 69dae95 commit 5d5496f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/AssetLib/MDL/MDLMaterialLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d5496f

Please sign in to comment.