diff options
Diffstat (limited to 'editor/app.cpp')
| -rw-r--r-- | editor/app.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index aa8608c5..9023b5ac 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -33,17 +33,17 @@ app::app(fm_settings&& opts) : maybe_initialize_chunk_(coord, w[coord]); reset_camera_offset(); inspectors.reserve(16); - _character = w.make_entity<character>(global_coords{}); + _character_id = w.make_entity<character>(global_coords{})->id; } -app::~app() -{ - void(); -} +app::~app() = default; int app::exec() { - return M->exec(); + int ret = M->exec(); + if (M) + M->reset_world(); + return ret; } static const char* const true_values[] = { "1", "true", "yes", "y", "Y", "on", "ON", "enable", "enabled", }; |
