Update HL1MDLLoader.cpp

Fix compiler warning
pull/2928/head
Kim Kulling 2020-01-22 10:06:40 +01:00 committed by GitHub
parent 6a5ab0381d
commit 3cf7d955f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}