From e183652943a5f477427be2897c2141ec2aeeb98e Mon Sep 17 00:00:00 2001 From: infra Date: Sun, 18 Sep 2022 11:04:06 +1000 Subject: [PATCH] Fix RTV count not decrementing on voter leave --- addons/sourcemod/scripting/st-rockthevote.sp | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sourcemod/scripting/st-rockthevote.sp b/addons/sourcemod/scripting/st-rockthevote.sp index 7ec353d..bd831eb 100644 --- a/addons/sourcemod/scripting/st-rockthevote.sp +++ b/addons/sourcemod/scripting/st-rockthevote.sp @@ -196,6 +196,7 @@ public void OnClientDisconnect(int client) if (g_Voted[client]) { g_Voted[client] = false; + g_Votes--; } if (IsFakeClient(client))