fixup 16f5980a3c
'config... ...now return return iterator_range.'
This commit is contained in:
parent
16f5980a3c
commit
cf16c6c787
2 changed files with 2 additions and 2 deletions
|
@ -3400,7 +3400,7 @@ void display::refresh_report(std::string const &report_name, const config * new_
|
|||
SDL_Rect ellipsis_area = rect;
|
||||
|
||||
for (config::const_child_itors elements = report.child_range("element");
|
||||
elements.begin() != elements.end(); elements.pop_front(1))
|
||||
elements.begin() != elements.end(); elements.pop_front())
|
||||
{
|
||||
SDL_Rect area = sdl::create_rect(x, y, rect.w + rect.x - x, rect.h + rect.y - y);
|
||||
if (area.h <= 0) break;
|
||||
|
|
|
@ -1667,7 +1667,7 @@ int game_lua_kernel::impl_game_config_get(lua_State *L)
|
|||
//This code for SigurdFD, not the cleanest implementation but seems to work just fine.
|
||||
config::const_child_itors its = game_config_manager::get()->game_config().child_range("era");
|
||||
std::string eras_list(its.front()["id"]);
|
||||
its.pop_front(1);
|
||||
its.pop_front();
|
||||
for(const auto& cfg : its) {
|
||||
eras_list = eras_list + "," + cfg["id"];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue