Fixed crash when starting the editor (fixes #2816)

If no display_context was passed to the display ctor (such as is the case in the editor),
the terrain_builder's gamemap pointer would be null. Really not sure why this didn't cause
a crash n the 1.14 branch, but oh well.

I just removed the ctor call to rebuild_all() since it's not really needed. The map is
rebuilt when change_display_context is called anyway, which both the editor_controller and
play_controller do.
This commit is contained in:
Charles Dang 2018-04-03 13:53:30 +11:00
parent 973a8f54f9
commit 26b6ca54bb

View file

@ -167,10 +167,6 @@ display::display(const display_context* dc,
image::set_zoom(zoom_);
init_flags();
rebuild_all();
assert(builder_);
// builder_->rebuild_cache_all();
}
display::~display()