fix irrreader leak.

This commit is contained in:
Kim Kulling
2020-01-16 20:25:47 +01:00
parent 10ff2d94f7
commit 40d882af4f
16 changed files with 126 additions and 147 deletions

View File

@@ -616,7 +616,7 @@ void SMDImporter::CreateOutputMaterials() {
if (aszTextures[iMat].length())
{
::strncpy(szName.data, aszTextures[iMat].c_str(),MAXLEN-1);
szName.length = aszTextures[iMat].length();
szName.length = static_cast<ai_uint32>( aszTextures[iMat].length() );
pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0));
}
}