Fixed memory leak, and timer error.
This commit is contained in:
parent
c24d1a32be
commit
0c75482eb8
@ -207,6 +207,9 @@ RoundEndOutcome:RoundEndReasonToOutcome(reason)
|
||||
*/
|
||||
public Action:RoundEndTimer(Handle:timer)
|
||||
{
|
||||
// Set the global timer handle variable to INVALID_HANDLE.
|
||||
tRoundEnd = INVALID_HANDLE;
|
||||
|
||||
// If there aren't clients on both teams, then stop.
|
||||
if (!ZRTeamHasClients())
|
||||
{
|
||||
|
@ -343,7 +343,7 @@ WeaponsOnItemPickup(client, weapon)
|
||||
WritePackCell(eventinfo, weapon);
|
||||
|
||||
// Create post delay timer.
|
||||
CreateTimer(0.0, WeaponsOnItemPickupPost, eventinfo);
|
||||
CreateTimer(0.0, WeaponsOnItemPickupPost, eventinfo, TIMER_DATA_HNDL_CLOSE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user