Explorar o código

Update MDLMaterialLoader.cpp

Add parentheses
Alex %!s(int64=2) %!d(string=hai) anos
pai
achega
f5683b6f3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/AssetLib/MDL/MDLMaterialLoader.cpp

+ 1 - 1
code/AssetLib/MDL/MDLMaterialLoader.cpp

@@ -493,7 +493,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
 
         aiString szFile;
         const size_t iLen = strlen((const char *)szCurrent);
-        size_t iLen2 = iLen > MAXLEN - 1 ? MAXLEN - 1: iLen;
+        size_t iLen2 = iLen > (MAXLEN - 1) ? (MAXLEN - 1) : iLen;
         memcpy(szFile.data, (const char *)szCurrent, iLen2);
         szFile.data[iLen2] = '\0';
         szFile.length = static_cast<ai_uint32>(iLen2);