summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-29 14:47:56 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-29 14:47:56 +0000
commitb8c8b9a3a8a4a752fd3a13f181c0b5abcc869f04 (patch)
treef2166b5ee4587eb5f1a7fcd06614515cd41823aa /src
parente177342cd0bd69313de720e5d42ffebe33b46e05 (diff)
downloadhercules-b8c8b9a3a8a4a752fd3a13f181c0b5abcc869f04.tar.gz
hercules-b8c8b9a3a8a4a752fd3a13f181c0b5abcc869f04.tar.bz2
hercules-b8c8b9a3a8a4a752fd3a13f181c0b5abcc869f04.tar.xz
hercules-b8c8b9a3a8a4a752fd3a13f181c0b5abcc869f04.zip
- Fixed a missing variable storage allocation resulting in NPC variables not being saved (bugreport:5669)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16003 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index ad239ddcd..269230b38 100644
--- a/src/map/script.c
+++ b/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;
}