From 8f4c828d0c91d67f258d1887de7decea3ee91ac8 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sat, 16 Jul 2022 14:17:14 +0200 Subject: [PATCH] Fix warning --- src/Nazara/Utility/AlgorithmUtility.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Nazara/Utility/AlgorithmUtility.cpp b/src/Nazara/Utility/AlgorithmUtility.cpp index 6dbd5a208..608d64c9f 100644 --- a/src/Nazara/Utility/AlgorithmUtility.cpp +++ b/src/Nazara/Utility/AlgorithmUtility.cpp @@ -521,9 +521,9 @@ namespace Nz VertexCacheData *v = &m_vertices[vert]; - for (int j = 0; j < v->remainingValence; j++) + for (int triIndex = 0; triIndex < v->remainingValence; triIndex++) { - TriangleCacheData *t = &m_triangles[v->triIndices[j]]; + TriangleCacheData* t = &m_triangles[v->triIndices[triIndex]]; // we actually found a triangle to process ret = true; @@ -532,8 +532,8 @@ namespace Nz t->calculated = false; // clear vertex flags - for (int i : t->verts) - m_vertices[i].calculated = false; + for (int vertIndex : t->verts) + m_vertices[vertIndex].calculated = false; } }