Use same next method to make cleaner than increment operator.

This commit is contained in:
Kevin Whitaker
2017-02-05 18:23:24 -05:00
parent cb5b2f7ad6
commit 6882d5ba71

View File

@@ -295,12 +295,12 @@ void GroovePlayerMgr::grooveEventLoop()
else if(pick <= 9) else if(pick <= 9)
{ {
//Second track wins. //Second track wins.
winner = (*currentVoteBatch.begin()++); winner = (*std::next(currentVoteBatch.begin(),1));
} }
else else
{ {
//Third track wins //Third track wins
winner = (*(currentVoteBatch.begin()++)++); winner = (*std::next(currentVoteBatch.begin(),2));
} }
} }
} }