From 4d1e265a5c186779d29d09e52e54fb42d46d10a0 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 27 Apr 2025 11:20:20 -0400 Subject: [PATCH] Fix entity output tests failing with server-only entities (#2276) --- plugins/testsuite/outputtest.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/testsuite/outputtest.sp b/plugins/testsuite/outputtest.sp index d3fde2d5..a72e1d72 100644 --- a/plugins/testsuite/outputtest.sp +++ b/plugins/testsuite/outputtest.sp @@ -35,12 +35,12 @@ public void OnPluginStart() public void OutputHook(const char[] name, int caller, int activator, float delay) { char callerClassname[64]; - if (caller >= 0 && IsValidEntity(caller)) { + if (IsValidEntity(caller)) { GetEntityClassname(caller, callerClassname, sizeof(callerClassname)); } char activatorClassname[64]; - if (activator >= 0 && IsValidEntity(activator)) { + if (IsValidEntity(activator)) { GetEntityClassname(activator, activatorClassname, sizeof(activatorClassname)); }