summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/magic-interpreter.py')
-rw-r--r--src/map/magic-interpreter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/magic-interpreter.py b/src/map/magic-interpreter.py
index cf17b1c..bbf135c 100644
--- a/src/map/magic-interpreter.py
+++ b/src/map/magic-interpreter.py
@@ -27,11 +27,11 @@ class area_t(object):
using tmwa::operator "" _s;
inline
- tmwa::map_local *fake_map_local_x_dup_for_area_t(tmwa::ZString name)
+ tmwa::Borrowed<tmwa::map_local> fake_map_local_x_dup_for_area_t(tmwa::ZString name)
{
auto *p = new tmwa::map_local{};
p->name_ = tmwa::stringish<tmwa::MapName>(name);
- return p;
+ return tmwa::borrow(*p);
}
'''
@@ -55,11 +55,11 @@ class val_t(object):
using tmwa::operator "" _s;
inline
- tmwa::map_local *fake_map_local_x_dup_for_val_t(tmwa::ZString name)
+ tmwa::Borrowed<tmwa::map_local> fake_map_local_x_dup_for_val_t(tmwa::ZString name)
{
auto *p = new tmwa::map_local{};
p->name_ = tmwa::stringish<tmwa::MapName>(name);
- return p;
+ return tmwa::borrow(*p);
}
'''