diff options
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) { |
