mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
97eb5ab8c9
commit
ff4c0ebb09
@ -1938,7 +1938,7 @@ void generate_terrain_sections(const config* /*help_cfg*/, section& sec, int /*l
|
||||
}
|
||||
}
|
||||
|
||||
for (std::map<std::string, section>::const_iterator it = base_map.begin(); it != base_map.end(); it++) {
|
||||
for (std::map<std::string, section>::const_iterator it = base_map.begin(); it != base_map.end(); ++it) {
|
||||
sec.add_section(it->second);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user