filesystem: simplify string operation
This commit is contained in:
parent
270e2a76a8
commit
6477f1656e
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ static signed char W_TypeFromExt( const char *lumpname )
|
||||||
const wadtype_t *type;
|
const wadtype_t *type;
|
||||||
|
|
||||||
// we not known about filetype, so match only by filename
|
// we not known about filetype, so match only by filename
|
||||||
if( !Q_strcmp( ext, "*" ) || !Q_strcmp( ext, "" ))
|
if( !Q_strcmp( ext, "*" ) || !COM_CheckStringEmpty( ext ))
|
||||||
return TYP_ANY;
|
return TYP_ANY;
|
||||||
|
|
||||||
for( type = wad_types; type->ext; type++ )
|
for( type = wad_types; type->ext; type++ )
|
||||||
|
|
Loading…
Add table
Reference in a new issue