filesystem: simplify string operation

This commit is contained in:
Alibek Omarov 2022-12-04 05:20:32 +03:00
parent 270e2a76a8
commit 6477f1656e
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ static signed char W_TypeFromExt( const char *lumpname )
const wadtype_t *type;
// 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;
for( type = wad_types; type->ext; type++ )