From 4a8c869b7e93949cf2a996211ae4cc86d9694799 Mon Sep 17 00:00:00 2001 From: proobs <40477767+proobs@users.noreply.github.com> Date: Fri, 7 Feb 2020 01:27:44 -0500 Subject: [PATCH] Update Forward Creation to Newer GlobalForward Methodmap (#1143) --- plugins/basecomm/forwards.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/basecomm/forwards.sp b/plugins/basecomm/forwards.sp index 7f0d13d8..e54b0798 100644 --- a/plugins/basecomm/forwards.sp +++ b/plugins/basecomm/forwards.sp @@ -33,11 +33,11 @@ void FireOnClientMute(int client, bool muteState) { - static Handle hForward; + static GlobalForward hForward; if(hForward == null) { - hForward = CreateGlobalForward("BaseComm_OnClientMute", ET_Ignore, Param_Cell, Param_Cell); + hForward = new GlobalForward("BaseComm_OnClientMute", ET_Ignore, Param_Cell, Param_Cell); } Call_StartForward(hForward); @@ -48,11 +48,11 @@ void FireOnClientMute(int client, bool muteState) void FireOnClientGag(int client, bool gagState) { - static Handle hForward; + static GlobalForward hForward; if(hForward == null) { - hForward = CreateGlobalForward("BaseComm_OnClientGag", ET_Ignore, Param_Cell, Param_Cell); + hForward = new GlobalForward("BaseComm_OnClientGag", ET_Ignore, Param_Cell, Param_Cell); } Call_StartForward(hForward);