From 47b9691f9bde62ea62f6601503997d93ed7ab64c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jul 2024 12:27:46 +0200 Subject: wa --- test/critter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/critter.cpp') diff --git a/test/critter.cpp b/test/critter.cpp index 071fae9b..90619ce8 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -1,7 +1,7 @@ #include "app.hpp" #include "compat/debug.hpp" -#include "compat/shared-ptr-wrapper.hpp" #include "compat/function2.hpp" +#include "compat/borrowed-ptr.inl" #include "src/critter.hpp" #include "src/scenery-proto.hpp" #include "src/world.hpp" @@ -118,7 +118,7 @@ bool run(world& w, const function_view& make_dt, mark_all_modified(w); object_id id = 0; - auto npc_ = w.ensure_player_character(id, make_proto((float)start.accel)).ptr; + auto npc_ = w.ensure_player_character(id, make_proto((float)start.accel)); auto& npc = *npc_; auto index = npc.index(); @@ -316,7 +316,7 @@ void test3(StringView instance_name, const Function& make_dt, double accel, rota { // reproduce the bug from commit 2b5a6e3f object_id id = 0; - auto npc = w.ensure_player_character(id, make_proto((float)accel)).ptr; + auto npc = w.ensure_player_character(id, make_proto((float)accel)); npc->set_bbox({}, {}, {1,1}, pass_mode::blocked); } -- cgit v1.2.3