Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2014-02-08 22:27:44 +01:00
parent 97eb5ab8c9
commit ff4c0ebb09

View File

@ -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);
}
}