i probably never get this right

This commit is contained in:
2024-11-27 12:00:45 +01:00
parent cbb9cc5817
commit d2a8f3a49d
+4 -1
View File
@@ -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;