mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: simplify string operation
This commit is contained in:
@@ -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++ )
|
||||
|
||||
Reference in New Issue
Block a user