mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: avoid crash if map entity doesn't have classname (tfc map flagwar for example)
This commit is contained in:
@@ -4786,6 +4786,9 @@ qboolean SV_ParseEdict( char **pfile, edict_t *ent )
|
||||
if( ++numpairs >= 256 ) break;
|
||||
}
|
||||
|
||||
if( classname == NULL )
|
||||
return false;
|
||||
|
||||
ent = SV_AllocPrivateData( ent, ALLOC_STRING( classname ));
|
||||
|
||||
if( !SV_IsValidEdict( ent ) || FBitSet( ent->v.flags, FL_KILLME ))
|
||||
|
||||
Reference in New Issue
Block a user