Skip to content

Commit

Permalink
Update MDLMaterialLoader.cpp (#5620)
Browse files Browse the repository at this point in the history
* Update MDLMaterialLoader.cpp

- closes #5239

* Add missing declaration
  • Loading branch information
kimkulling committed Jun 14, 2024
1 parent 97cbecb commit 81858f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/AssetLib/MDL/MDLMaterialLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ void MDLImporter::SkipSkinLump_3DGS_MDL7(
// if an ASCII effect description (HLSL?) is contained in the file,
// we can simply ignore it ...
if (iType & AI_MDL7_SKINTYPE_MATERIAL_ASCDEF) {
int32_t iMe = *((int32_t *)szCurrent);
int32_t iMe = 0;
::memcpy(&iMe, szCurrent, sizeof(int32_t));
AI_SWAP4(iMe);
szCurrent += sizeof(char) * iMe + sizeof(int32_t);
}
Expand Down

0 comments on commit 81858f9

Please sign in to comment.