From 111d6923bffd3d5366fc2de646eb166ced1373cb Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sun, 23 Feb 2025 06:15:49 -0800 Subject: [PATCH] isPlayer: classname sanity check. --- src/shared/api.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/api.qc b/src/shared/api.qc index e6a2c7d2..a90bc70d 100644 --- a/src/shared/api.qc +++ b/src/shared/api.qc @@ -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();