From 8da75d9189bb9c34fed15fa2ab9ce77579235491 Mon Sep 17 00:00:00 2001 From: hermansimensen Date: Sun, 9 May 2021 06:02:55 +0200 Subject: [PATCH] oops --- scripting/eventqueuefix.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/eventqueuefix.sp b/scripting/eventqueuefix.sp index c178a6a..ab703a6 100644 --- a/scripting/eventqueuefix.sp +++ b/scripting/eventqueuefix.sp @@ -293,7 +293,7 @@ public void ServiceEvent(event_t event) int targetEntity = -1; if(!IsValidEntity(event.caller)) - event.caller = 0; + event.caller = -1; // In the context of the event, the searching entity is also the caller while ((targetEntity = FindEntityByName(targetEntity, event.target, event.caller, event.activator, event.caller)) != -1)