mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 03:34:36 +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) {
|
if(next == end) {
|
||||||
config& res = config::add_child(key, val);
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user