diff --git a/extensions/sdktools/gamerulesnatives.cpp b/extensions/sdktools/gamerulesnatives.cpp index 71b5c987..1abe4241 100644 --- a/extensions/sdktools/gamerulesnatives.cpp +++ b/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();