mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
votemap hotfix 2
This commit is contained in:
parent
860c72fe4e
commit
ac85878fa9
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -2397,8 +2397,8 @@ void AvHGamerules::VoteMap(int inPlayerIndex, int inMapIndex)
|
|||
// Increment votes for map
|
||||
// MapVoteListType::iterator theIter = (MapVoteListType::iterator)&this->mMapVoteList[inMapIndex-1]; //to fix 20214
|
||||
//MapVoteListType::iterator theIter = this->mMapVoteList.begin();
|
||||
int theVotes = this->mMapVoteList.at(inMapIndex - 1).second++;
|
||||
|
||||
this->mMapVoteList.at(inMapIndex - 1).second++;
|
||||
int theVotes = this->mMapVoteList.at(inMapIndex - 1).second;
|
||||
// If player has already voted, decrement previous map and update which map the player has voted
|
||||
if(theMappedPlayer != this->mPlayersVoted.end()) {
|
||||
// ((MapVoteListType::iterator)&this->mMapVoteList[theMappedPlayer->second - 1])->second--; /to fix 20214
|
||||
|
|
Loading…
Reference in a new issue