Skip to content
Permalink
Browse files

Validate GetEntityHandle in FindEntityByNetClass (#1089)

  • Loading branch information
BotoX authored and KyleSanderson committed Nov 6, 2019
1 parent 23e1c0b commit 3dd1e5a3189b7d95f11150eecaf4f0b0147c3e41
Showing with 4 additions and 0 deletions.
  1. +4 −0 extensions/sdktools/gamerulesnatives.cpp
@@ -53,6 +53,10 @@ static CBaseEntity *FindEntityByNetClass(int start, const char *classname)
if (network == NULL)
continue;

IHandleEntity *pHandleEnt = network->GetEntityHandle();
if (pHandleEnt == NULL)
continue;

ServerClass *sClass = network->GetServerClass();
const char *name = sClass->GetName();

0 comments on commit 3dd1e5a

Please sign in to comment.
You can’t perform that action at this time.