votemap hotfix 2

This commit is contained in:
Bacsu 2016-09-12 12:44:19 +02:00
parent 860c72fe4e
commit ac85878fa9
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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