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 /bench | |
| parent | 6aabc74a535da1f2d5cf866346b31939d097cbac (diff) | |
wa
Diffstat (limited to 'bench')
| -rw-r--r-- | bench/critter.cpp | 3 | ||||
| -rw-r--r-- | bench/loader.cpp | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bench/critter.cpp b/bench/critter.cpp index 9dd69f3a..418a4f9e 100644 --- a/bench/critter.cpp +++ b/bench/critter.cpp @@ -1,5 +1,4 @@ #include "compat/debug.hpp" -#include "compat/shared-ptr-wrapper.hpp" #include "compat/function2.hpp" #include "src/critter.hpp" #include "src/world.hpp" @@ -109,7 +108,7 @@ bool run(world& w, const function_view<Ns() const>& 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(); diff --git a/bench/loader.cpp b/bench/loader.cpp index 00008d00..0cd08699 100644 --- a/bench/loader.cpp +++ b/bench/loader.cpp @@ -3,6 +3,7 @@ #include "loader/wall-cell.hpp" #include "serialize/json-helper.hpp" #include "serialize/anim.hpp" +#include "compat/borrowed-ptr.inl" #include <Corrade/Containers/ArrayView.h> #include <Corrade/Containers/StringIterable.h> #include <benchmark/benchmark.h> |
