summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c2d9b2278..bba771a3c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -15692,6 +15692,9 @@ BUILDIN(getvariableofnpc)
return false;
}
+ if( !nd->u.scr.script->local.vars )
+ nd->u.scr.script->local.vars = i64db_alloc(DB_OPT_RELEASE_DATA);
+
script->push_val(st->stack, C_NAME, reference_getuid(data), &nd->u.scr.script->local);
return true;
}