From 1ca44acebcdc7fae599eb1ae9e038ba4264b1707 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 23 Aug 2022 14:03:48 +0300 Subject: [PATCH] Simplify a for loop --- code/AssetLib/SMD/SMDLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/AssetLib/SMD/SMDLoader.cpp b/code/AssetLib/SMD/SMDLoader.cpp index 97637b20a..4ff6234c2 100644 --- a/code/AssetLib/SMD/SMDLoader.cpp +++ b/code/AssetLib/SMD/SMDLoader.cpp @@ -244,7 +244,7 @@ void SMDImporter::CreateOutputMeshes() { iNum = 0; for (std::vector::const_iterator iFace = asTriangles.begin(); - iFace != asTriangles.end();++iFace,++iNum) { + iFace != asTriangles.end(); ++iFace) { if (UINT_MAX == (*iFace).iTexture) { aaiFaces[(*iFace).iTexture].push_back( 0 ); } else if ((*iFace).iTexture >= aszTextures.size()) { @@ -253,6 +253,7 @@ void SMDImporter::CreateOutputMeshes() { } else { aaiFaces[(*iFace).iTexture].push_back(iNum); } + ++iNum; } // now create the output meshes