mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 20:40:01 +00:00
Post instead of pre increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
b8ce1f108e
commit
dfa41c837f
@ -838,7 +838,7 @@ bool config::matches(const config &filter) const
|
|||||||
if(!found) return false;
|
if(!found) return false;
|
||||||
}
|
}
|
||||||
child_list negative_children = filter.get_children("not");
|
child_list negative_children = filter.get_children("not");
|
||||||
for(child_list::iterator j3 = negative_children.begin() ; j3 != negative_children.end() ; j3++) {
|
for(child_list::iterator j3 = negative_children.begin() ; j3 != negative_children.end() ; ++j3) {
|
||||||
if(matches(**j3)) return false;
|
if(matches(**j3)) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user