mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 19:18:57 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
c2fbf96856
commit
9ad17eb7af
@ -412,7 +412,7 @@ report generate_report(TYPE type,
|
||||
if (current_team.uses_shroud()) {
|
||||
int unshrouded_villages = 0;
|
||||
std::vector<map_location>::const_iterator i = map.villages().begin();
|
||||
for (; i != map.villages().end(); i++) {
|
||||
for (; i != map.villages().end(); ++i) {
|
||||
if (!current_team.shrouded(*i))
|
||||
unshrouded_villages++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user