mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 20:37:51 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
b6fa0e180a
commit
5c6b51a6e1
@ -152,7 +152,7 @@ protected:
|
||||
else return *this;
|
||||
}
|
||||
void init () {
|
||||
for (config::all_children_iterator i = cfg_.ordered_begin(); i != cfg_.ordered_end(); i++) {
|
||||
for (config::all_children_iterator i = cfg_.ordered_begin(); i != cfg_.ordered_end(); ++i) {
|
||||
if (i->key != "variables") {
|
||||
child(i->key).init();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user