diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 18:32:39 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 18:37:30 +0200 |
| commit | f5a7dc9d264c4231d9f688704ceef6971bddf272 (patch) | |
| tree | 6996ffd40229708db40d781be36e0cf396a9395b /editor/editor.cpp | |
| parent | ec7be88fbb4062af20b77198007d815c321c2850 (diff) | |
editor: fix removing scenery
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index b744f03c..3c470bf2 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -109,10 +109,10 @@ void editor::on_click_(world& world, global_coords pos, button b) default: break; case button::place: if (const auto& sel = mode->get_selected()) - mode->place_tile(world, pos, sel); + mode->place_tile(world, pos, sel, *_app); break; case button::remove: - mode->place_tile(world, pos, {}); + mode->place_tile(world, pos, {}, *_app); break; } } @@ -151,7 +151,7 @@ void editor::on_click(world& world, global_coords pos, int mods, button b) } } -editor::editor() = default; +editor::editor(app* a) : _app{a} {} void editor::set_mode(editor_mode mode) { |
