summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/walk-test.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
commit47b9691f9bde62ea62f6601503997d93ed7ab64c (patch)
treef0e08b4f37ced066ac18defdf233eec0e91b6cc0 /editor/tests/walk-test.cpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'editor/tests/walk-test.cpp')
-rw-r--r--editor/tests/walk-test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/tests/walk-test.cpp b/editor/tests/walk-test.cpp
index a317928f..f04fc869 100644
--- a/editor/tests/walk-test.cpp
+++ b/editor/tests/walk-test.cpp
@@ -1,5 +1,4 @@
#include "../tests-private.hpp"
-#include "compat/shared-ptr-wrapper.hpp"
#include "editor/app.hpp"
#include "src/critter.hpp"
#include "src/critter-script.hpp"
@@ -8,6 +7,7 @@
#include "floormat/main.hpp"
#include "../imgui-raii.hpp"
#include "src/search-astar.hpp"
+#include "compat/borrowed-ptr.inl"
#include <mg/Functions.h>
namespace floormat::tests {
@@ -43,7 +43,7 @@ bool pf_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_do
{
if (auto ptʹ = a.cursor_state().point())
{
- auto C = a.ensure_player_character(m.world()).ptr;
+ auto C = a.ensure_player_character(m.world());
fm_assert(C->is_dynamic());
constexpr auto chunk_size = iTILE_SIZE2 * TILE_MAX_DIM;
@@ -63,7 +63,7 @@ bool pf_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_do
}
else if (e.button == mouse_button_right && is_down)
{
- auto C = a.ensure_player_character(m.world()).ptr;
+ auto C = a.ensure_player_character(m.world());
C->script.do_clear(C);
}
return false;