浏览代码

- Fixed a missing variable storage allocation resulting in NPC variables not being saved (bugreport:5669)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16003 54d463be-8e91-2dee-dedb-b68131a5f0ec
epoque11 13 年之前
父节点
当前提交
9b45e8e104
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -2456,7 +2456,7 @@ struct script_code* parse_script(const char *src,const char *file,int line,int o
 	CREATE(code,struct script_code,1);
 	code->script_buf  = script_buf;
 	code->script_size = script_size;
-	code->script_vars = NULL;
+	code->script_vars = idb_alloc(DB_OPT_RELEASE_DATA);
 	return code;
 }