Sfoglia il codice sorgente

Fixed variable in loop - HL1MDLLoader.cpp

Commit 7e5a0acc48efc54d7aa7900c36cd63db1fbeec9b made changes to HL1MDLLoader.cpp. Several variables have been renamed. A loop variable 'i' was renamed to faceIdx, but one reference was left unchanged.
Marc-Antoine Lortie 5 anni fa
parent
commit
03340787ec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      code/AssetLib/MDL/HalfLife/HL1MDLLoader.cpp

+ 1 - 1
code/AssetLib/MDL/HalfLife/HL1MDLLoader.cpp

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