mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 23:11:02 +00:00
fixup 'fix config::add_child_at_total'
This commit is contained in:
parent
f1dc5de631
commit
8160d9add4
@ -571,7 +571,8 @@ config& config::add_child_at_total(config_key_type key, const config &val, size_
|
||||
|
||||
if(next == end) {
|
||||
config& res = config::add_child(key, val);
|
||||
std::rotate(ordered_children.begin() + pos, ordered_children.end(), ordered_children.end() - 1);
|
||||
//rotate the just inserted element to position pos.
|
||||
std::rotate(ordered_children.begin() + pos, ordered_children.end() - 1, ordered_children.end());
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user