Fail in copy-paste

Former-commit-id: ac1ff8c19a3fdbb8961b911c718e51be9b5a73a4
This commit is contained in:
Gawaboumga 2016-05-30 20:43:27 +02:00
parent a2c0963fe4
commit 43e6424969
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ namespace Nz
for (unsigned int i = 0; i < recursionLevel; ++i)
{
std::size_t triangleCount = triangles.size();
for (std::size_t i = 0; i < triangleCount; ++i)
for (std::size_t j = 0; j < triangleCount; ++j)
{
Vector3ui& triangle = triangles[i];
Vector3ui& triangle = triangles[j];
unsigned int a = GetMiddleVertex(triangle.x, triangle.y);
unsigned int b = GetMiddleVertex(triangle.y, triangle.z);