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:
parent
50e27afc47
commit
a638e8cc33
1 changed files with 933 additions and 2016 deletions
2949
src/display.cpp
2949
src/display.cpp
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue