renaming iterator to avoid any possibility of scop collisions

pull/3607/head
contriteobserver 2021-01-26 01:36:12 -08:00
parent 69fc809307
commit d7bf513250
1 changed files with 3 additions and 3 deletions

View File

@ -557,9 +557,9 @@ void ColladaLoader::BuildMeshesForNode(const ColladaParser &pParser, const Colla
faceStart += submesh.mNumFaces; faceStart += submesh.mNumFaces;
// assign the material index // assign the material index
std::map<std::string, size_t>::const_iterator matIt = mMaterialIndexByName.find(submesh.mMaterial); std::map<std::string, size_t>::const_iterator subMatIt = mMaterialIndexByName.find(submesh.mMaterial);
if (matIt != mMaterialIndexByName.end()) { if (subMatIt != mMaterialIndexByName.end()) {
dstMesh->mMaterialIndex = static_cast<unsigned int>(matIt->second); dstMesh->mMaterialIndex = static_cast<unsigned int>(subMatIt->second);
} else { } else {
dstMesh->mMaterialIndex = matIdx; dstMesh->mMaterialIndex = matIdx;
} }