Remove superfluous assignment after delete (#654)

This commit is contained in:
Maxim Telezhenko
2017-08-22 20:55:04 +01:00
committed by Asher Baker
parent 9af507a322
commit 68c00b8ae7
3 changed files with 0 additions and 3 deletions
-1
View File
@@ -378,7 +378,6 @@ void VoteSelect(Menu menu, int param1, int param2 = 0)
void VoteMenuClose() void VoteMenuClose()
{ {
delete g_hVoteMenu; delete g_hVoteMenu;
g_hVoteMenu = null;
} }
float GetVotePercent(int votes, int totalVotes) float GetVotePercent(int votes, int totalVotes)
-1
View File
@@ -298,7 +298,6 @@ void VoteSelect(Menu menu, int param1, int param2 = 0)
void VoteMenuClose() void VoteMenuClose()
{ {
delete g_hVoteMenu; delete g_hVoteMenu;
g_hVoteMenu = null;
} }
float GetVotePercent(int votes, int totalVotes) float GetVotePercent(int votes, int totalVotes)
-1
View File
@@ -682,7 +682,6 @@ void InitiateVote(MapChange when, ArrayList inputlist=null)
{ {
g_HasVoteStarted = false; g_HasVoteStarted = false;
delete g_VoteMenu; delete g_VoteMenu;
g_VoteMenu = null;
return; return;
} }