isPlayer: classname sanity check.
This commit is contained in:
parent
7bfe67c3b5
commit
111d6923bf
1 changed files with 2 additions and 0 deletions
|
@ -967,6 +967,8 @@ isClient(entity entityToCheck)
|
|||
bool
|
||||
isPlayer(entity entityToCheck)
|
||||
{
|
||||
if (STRING_SET(entityToCheck.classname))
|
||||
|
||||
if (isClient(entityToCheck)) {
|
||||
ncClient pl = (ncClient)entityToCheck;
|
||||
return pl.IsPlayer();
|
||||
|
|
Loading…
Reference in a new issue