Skip to content

Commit

Permalink
fixup 16f5980 'config... ...now return return iterator_range.'
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Aug 14, 2016
1 parent 16f5980 commit cf16c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -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"];
}
Expand Down

0 comments on commit cf16c6c

Please sign in to comment.