Browse Source

Update HL1MDLLoader.cpp

Fix compiler warning
Kim Kulling 5 years ago
parent
commit
3cf7d955f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/MDL/HalfLife/HL1MDLLoader.cpp

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

@@ -374,7 +374,7 @@ void HL1MDLLoader::read_texture(const Texture_HL1 *ptexture,
     for (outheight = 1; outheight < ptexture->height; outheight <<= 1)
         ;
 
-    if (outheight > BuffenLen) {
+    if (static_cast<size_t>(outheight) > BuffenLen) {
         outheight = BuffenLen;
     }