aboutsummaryrefslogtreecommitdiff
path: root/src/client/mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mesh.cpp')
-rw-r--r--src/client/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mesh.cpp b/src/client/mesh.cpp
index 070200889..9bbb3a0a8 100644
--- a/src/client/mesh.cpp
+++ b/src/client/mesh.cpp
@@ -356,7 +356,7 @@ bool checkMeshNormals(scene::IMesh *mesh)
buffer->getPosition(buffer->getIndices()[i+2]));
for (u16 j = 0; j < 3; j++)
- if (plane.Normal.dotProduct(buffer->getNormal(buffer->getIndices()[j])) < 0)
+ if (plane.Normal.dotProduct(buffer->getNormal(buffer->getIndices()[i+j])) <= 0)
return false;
}