summaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
Diffstat (limited to 'bench')
-rw-r--r--bench/critter.cpp3
-rw-r--r--bench/loader.cpp1
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>