Remove redundant check

This commit is contained in:
Johan Mattsson 2023-08-13 13:09:43 +02:00 committed by GitHub
parent ddbaf03d72
commit 3926194110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,10 +449,6 @@ eclass_t *Eclass_ForName( const char *name, qboolean has_brushes ){
} }
#endif #endif
if ( !name ) {
return eclass_bad;
}
for ( e = eclass ; e ; e = e->next ) for ( e = eclass ; e ; e = e->next )
if ( !strcmp( name, e->name ) ) { if ( !strcmp( name, e->name ) ) {
return e; return e;