summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 200179e5..7e686aa9 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -10,6 +10,7 @@
#include "compat/exception.hpp"
#include "compat/limits.hpp"
#include "compat/non-const.hpp"
+#include "compat/borrowed-ptr.inl"
#include "nanosecond.inl"
#include <cmath>
#include <algorithm>
@@ -363,8 +364,8 @@ bool object::is_dynamic() const { return atlas->info().fps > 0; }
bool object::updates_passability() const { return false; }
void object::maybe_mark_neighbor_chunks_modified() {}
-void object::init_script(const std::shared_ptr<object>&) {}
-void object::destroy_script_pre(const std::shared_ptr<object>&, script_destroy_reason) {}
+void object::init_script(const bptr<object>&) {}
+void object::destroy_script_pre(const bptr<object>&, script_destroy_reason) {}
void object::destroy_script_post() {}
void object::check_script_update_1(script_lifecycle state)