Merge pull request #523 from Pan7/fixCmpWarn

Fix warning comparison of unsigned expression < 0 is always false
This commit is contained in:
Timothee "TTimo" Besset 2017-07-11 10:20:31 +02:00 committed by GitHub
commit 376cbeaba1

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