Merge pull request #3303 from malortie/fix-loop-variable-HL1MDLLoader

Fixed variable in loop - HL1MDLLoader.cpp
This commit is contained in:
Kim Kulling
2020-06-30 21:11:32 +02:00
committed by GitHub

View File

@@ -829,7 +829,7 @@ void HL1MDLLoader::read_meshes() {
}
} else {
for (int faceIdx = 0; faceIdx < num_faces; ++faceIdx) {
if (i & 1) {
if (faceIdx & 1) {
// Preserve winding order.
mesh_faces.push_back(HL1MeshFace{
tricmds[faceIdx + 1],