Fixed variable in loop - HL1MDLLoader.cpp

Commit 7e5a0acc48 made changes to HL1MDLLoader.cpp. Several variables have been renamed. A loop variable 'i' was renamed to faceIdx, but one reference was left unchanged.
pull/3303/head
Marc-Antoine Lortie 2020-06-29 07:50:51 -04:00
parent 4ff5a06ef4
commit 03340787ec
1 changed files with 1 additions and 1 deletions

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],