From 780a0d771edbe21dcfa3405163ffbdf7f7fa4604 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 13 Oct 2014 13:16:34 -0700 Subject: Convert container lookups to use Option> --- src/map/script-persist.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/script-persist.hpp') 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 script; }; struct ScriptDataFuncRef { -- cgit v1.2.3-70-g09d2