Remove superfluous assignment after delete (#654)
This commit is contained in:
parent
9af507a322
commit
68c00b8ae7
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user