mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:28:18 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
7cb8195faf
commit
844ab5b355
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user