Browse Source

filesystem: simplify string operation

pull/2/head
Alibek Omarov 2 years ago
parent
commit
6477f1656e
  1. 2
      filesystem/wad.c

2
filesystem/wad.c

@ -120,7 +120,7 @@ static signed char W_TypeFromExt( const char *lumpname ) @@ -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++ )

Loading…
Cancel
Save