diff --git a/code/MDL/HalfLife/HL1MDLLoader.cpp b/code/MDL/HalfLife/HL1MDLLoader.cpp index 52a5a87e7..f662c7eec 100644 --- a/code/MDL/HalfLife/HL1MDLLoader.cpp +++ b/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(outheight) > BuffenLen) { outheight = BuffenLen; }