cast -1 to unsigned for comparison

This commit is contained in:
Ondřej Hošek 2012-06-30 20:03:29 +02:00
parent a922f748e7
commit 2cd9ae6833
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ CDirectoryFolder *CBSPFile::CreateRoot()
// Loop through each texture in the BSP file.
for(hlUInt i = 0; i < this->pTextureHeader->uiTextureCount; i++)
{
if(this->pTextureHeader->lpOffsets[i] == -1)
if(this->pTextureHeader->lpOffsets[i] == (hlUInt)-1)
{
continue;
}