mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-13 06:21:08 +00:00
filesystem: simplify string operation
This commit is contained in:
parent
270e2a76a8
commit
6477f1656e
@ -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…
x
Reference in New Issue
Block a user