Fix warning comparison of unsigned expression < 0 is always false

This commit is contained in:
Pan7 2017-07-09 16:53:05 +02:00
parent 52da823a3c
commit e994140c51

View file

@ -195,7 +195,7 @@ int CPicoModel::GetNumSurfaces( void ){
}
char *CPicoModel::GetShaderNameForSurface( const unsigned int surf ){
if ( !m_pModel || surf < 0 || surf >= m_children->len ) {
if ( !m_pModel || surf >= m_children->len ) {
return 0;
}