Simplify a for loop

pull/4699/head
Turo Lamminen 2022-08-23 14:03:48 +03:00
parent 712671e81a
commit 1ca44acebc
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void SMDImporter::CreateOutputMeshes() {
iNum = 0; iNum = 0;
for (std::vector<SMD::Face>::const_iterator for (std::vector<SMD::Face>::const_iterator
iFace = asTriangles.begin(); iFace = asTriangles.begin();
iFace != asTriangles.end();++iFace,++iNum) { iFace != asTriangles.end(); ++iFace) {
if (UINT_MAX == (*iFace).iTexture) { if (UINT_MAX == (*iFace).iTexture) {
aaiFaces[(*iFace).iTexture].push_back( 0 ); aaiFaces[(*iFace).iTexture].push_back( 0 );
} else if ((*iFace).iTexture >= aszTextures.size()) { } else if ((*iFace).iTexture >= aszTextures.size()) {
@ -253,6 +253,7 @@ void SMDImporter::CreateOutputMeshes() {
} else { } else {
aaiFaces[(*iFace).iTexture].push_back(iNum); aaiFaces[(*iFace).iTexture].push_back(iNum);
} }
++iNum;
} }
// now create the output meshes // now create the output meshes