diff --git a/code/UnrealLoader.cpp b/code/UnrealLoader.cpp index ad839fb25..790002235 100644 --- a/code/UnrealLoader.cpp +++ b/code/UnrealLoader.cpp @@ -333,7 +333,7 @@ void UnrealImporter::InternReadFile( const std::string& pFile, std::vector::iterator nt = std::find(materials.begin(),materials.end(),mat); if (nt == materials.end()) { // add material - tri.matIndex = materials.size(); + tri.matIndex = static_cast(materials.size()); mat.numFaces = 1; materials.push_back(mat);