cast -1 to unsigned for comparison
This commit is contained in:
parent
a922f748e7
commit
2cd9ae6833
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue