diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/main-impl.hpp | 2 | ||||
-rw-r--r-- | main/setup.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/main-impl.hpp b/main/main-impl.hpp index ddb16e81..9e8527ad 100644 --- a/main/main-impl.hpp +++ b/main/main-impl.hpp @@ -34,7 +34,7 @@ struct main_impl final : Platform::Sdl2Application, floormat_main struct world& world() noexcept override; struct world& reset_world() noexcept override; - struct world& reset_world(struct world) noexcept override; + struct world& reset_world(struct world&& w) noexcept override; SDL_Window* window() noexcept override; fm_settings& settings() noexcept override; diff --git a/main/setup.cpp b/main/setup.cpp index 1f0adcb4..0212d4fc 100644 --- a/main/setup.cpp +++ b/main/setup.cpp @@ -103,7 +103,7 @@ struct world& main_impl::reset_world() noexcept return reset_world(floormat::world{}); } -struct world& main_impl::reset_world(struct world w) noexcept +struct world& main_impl::reset_world(struct world&& w) noexcept { _clickable_scenery.clear(); _world = std::move(w); |