summaryrefslogtreecommitdiff
path: root/src/map/script-persist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script-persist.hpp')
-rw-r--r--src/map/script-persist.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/script-persist.hpp b/src/map/script-persist.hpp
index 35cd2d0..3d9f22b 100644
--- a/src/map/script-persist.hpp
+++ b/src/map/script-persist.hpp
@@ -22,6 +22,8 @@
#include "fwd.hpp"
+#include "../compat/borrow.hpp"
+
#include "../strings/rstring.hpp"
#include "../sexpr/variant.hpp"
@@ -81,7 +83,7 @@ struct ScriptDataRetInfo
{
// Not a ScriptPointer - pos is stored in a separate slot,
// to avoid exploding the struct for everyone.
- const ScriptBuffer *script;
+ Borrowed<const ScriptBuffer> script;
};
struct ScriptDataFuncRef
{