diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
| commit | 47b9691f9bde62ea62f6601503997d93ed7ab64c (patch) | |
| tree | f0e08b4f37ced066ac18defdf233eec0e91b6cc0 /editor/tests/path-test.cpp | |
| parent | 6aabc74a535da1f2d5cf866346b31939d097cbac (diff) | |
wa
Diffstat (limited to 'editor/tests/path-test.cpp')
| -rw-r--r-- | editor/tests/path-test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/tests/path-test.cpp b/editor/tests/path-test.cpp index 63b59dd4..4b82af68 100644 --- a/editor/tests/path-test.cpp +++ b/editor/tests/path-test.cpp @@ -1,14 +1,15 @@ #include "../tests-private.hpp" #include "../app.hpp" #include "compat/array-size.hpp" -#include "compat/shared-ptr-wrapper.hpp" #include "compat/vector-wrapper.hpp" +#include "compat/borrowed-ptr.inl" #include "floormat/main.hpp" #include "src/search-astar.hpp" #include "src/search-result.hpp" #include "src/critter.hpp" #include "shaders/shader.hpp" #include "../imgui-raii.hpp" +#include <cstdio> #include <cr/Optional.h> #include <mg/Functions.h> #include <mg/Color.h> @@ -59,7 +60,7 @@ bool path_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_ case mouse_button_left: { auto& M = a.main(); auto& w = M.world(); - auto C = a.ensure_player_character(w).ptr; + auto C = a.ensure_player_character(w); if (auto pt = a.cursor_state().point()) { constexpr auto chunk_size = iTILE_SIZE2 * TILE_MAX_DIM; |
