From d2a8f3a49d71b428050fc776a18253bf1fccf8ff Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 27 Nov 2024 12:00:45 +0100 Subject: [PATCH] i probably never get this right --- zombie_hunting_respawn/zh_respawn_stop.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zombie_hunting_respawn/zh_respawn_stop.sp b/zombie_hunting_respawn/zh_respawn_stop.sp index 492a7139..28f6ed6c 100644 --- a/zombie_hunting_respawn/zh_respawn_stop.sp +++ b/zombie_hunting_respawn/zh_respawn_stop.sp @@ -247,7 +247,10 @@ public void OnPluginEnd() if (g_hZoneCounter != null) delete g_hZoneCounter; if (g_hZoneBenefits != null) + { delete g_hZoneBenefits; + g_hZoneBenefits = INVALID_HANDLE; + } } //---------------------------------------------------------------------------------------------------- @@ -304,7 +307,7 @@ public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast) { if(g_hZoneBenefits != INVALID_HANDLE) { - KillTimer(g_hZoneBenefits); + delete g_hZoneBenefits; g_hZoneBenefits = INVALID_HANDLE; } round_start_delay = true;