mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-01 01:34:17 +00:00
engine: server: avoid crash if map entity doesn't have classname (tfc map flagwar for example)
This commit is contained in:
parent
ddd48c420b
commit
8966172ce0
@ -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 ))
|
||||
|
Loading…
x
Reference in New Issue
Block a user