Browse Source

Added missing parentheses around assignment in while condition.

Marc-Antoine Lortie 6 years ago
parent
commit
87de50e1f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/MDL/HalfLife/HL1MDLLoader.cpp

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

@@ -764,7 +764,7 @@ void HL1MDLLoader::read_meshes() {
                 bone_triverts.clear();
 
                 int l;
-                while (l = *(ptricmds++)) {
+                while ((l = *(ptricmds++))) {
                     bool is_triangle_fan = false;
 
                     if (l < 0) {