Validate GetEntityHandle in FindEntityByNetClass (#1089)
This commit is contained in:
parent
23e1c0b71e
commit
3dd1e5a318
@ -53,6 +53,10 @@ static CBaseEntity *FindEntityByNetClass(int start, const char *classname)
|
|||||||
if (network == NULL)
|
if (network == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
IHandleEntity *pHandleEnt = network->GetEntityHandle();
|
||||||
|
if (pHandleEnt == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
ServerClass *sClass = network->GetServerClass();
|
ServerClass *sClass = network->GetServerClass();
|
||||||
const char *name = sClass->GetName();
|
const char *name = sClass->GetName();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user