i probably never get this right

This commit is contained in:
jenz 2024-11-27 12:00:45 +01:00
parent cbb9cc5817
commit d2a8f3a49d

View File

@ -247,7 +247,10 @@ public void OnPluginEnd()
if (g_hZoneCounter != null) if (g_hZoneCounter != null)
delete g_hZoneCounter; delete g_hZoneCounter;
if (g_hZoneBenefits != null) if (g_hZoneBenefits != null)
{
delete g_hZoneBenefits; 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) if(g_hZoneBenefits != INVALID_HANDLE)
{ {
KillTimer(g_hZoneBenefits); delete g_hZoneBenefits;
g_hZoneBenefits = INVALID_HANDLE; g_hZoneBenefits = INVALID_HANDLE;
} }
round_start_delay = true; round_start_delay = true;