Fix warning
This commit is contained in:
parent
6882163693
commit
8f4c828d0c
|
|
@ -521,9 +521,9 @@ namespace Nz
|
||||||
|
|
||||||
VertexCacheData *v = &m_vertices[vert];
|
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
|
// we actually found a triangle to process
|
||||||
ret = true;
|
ret = true;
|
||||||
|
|
@ -532,8 +532,8 @@ namespace Nz
|
||||||
t->calculated = false;
|
t->calculated = false;
|
||||||
|
|
||||||
// clear vertex flags
|
// clear vertex flags
|
||||||
for (int i : t->verts)
|
for (int vertIndex : t->verts)
|
||||||
m_vertices[i].calculated = false;
|
m_vertices[vertIndex].calculated = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue