summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/region-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tests/region-test.cpp')
-rw-r--r--editor/tests/region-test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/tests/region-test.cpp b/editor/tests/region-test.cpp
index 1206b1eb..0c51bf8a 100644
--- a/editor/tests/region-test.cpp
+++ b/editor/tests/region-test.cpp
@@ -1,5 +1,4 @@
#include "../tests-private.hpp"
-#include "compat/shared-ptr-wrapper.hpp"
#include "src/tile-constants.hpp"
#include "src/chunk-region.hpp"
#include "src/object.hpp"
@@ -153,7 +152,7 @@ void region_test::do_region_extraction(app& a, chunk_coords_ coord)
{
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* c = w.at(coord))
{
auto C_coord = Vector2i{ Vector2i(C->coord.local()) * iTILE_SIZE2 + Vector2i(C->offset) };