Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2011-05-28 19:00:26 +00:00
parent 7cb8195faf
commit 844ab5b355

View File

@ -1176,7 +1176,7 @@ void connect::start_game()
std::vector<int> playable_sides;
// Find ids of playable sides
for (side_list::iterator itor = sides_.begin(); itor != sides_.end(); itor++)
for (side_list::iterator itor = sides_.begin(); itor != sides_.end(); ++itor)
if (itor->allow_player()) playable_sides.push_back(itor->get_index());
// Now do Fisher-Yates shuffle