Use same next method to make cleaner than increment operator.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user