summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-07-17 05:29:19 +0200
committerHaru <haru@dotalux.com>2013-07-17 05:29:19 +0200
commit857e4fb58b26ea088c0ad92ec5b1ac9423ec1e65 (patch)
treed71a14fd519210ac9735f804e0bb7a046ff7cbd5 /src/map/script.c
parentf530cfe173bc5e9ac177adac0ae4aef33164838f (diff)
downloadhercules-857e4fb58b26ea088c0ad92ec5b1ac9423ec1e65.tar.gz
hercules-857e4fb58b26ea088c0ad92ec5b1ac9423ec1e65.tar.bz2
hercules-857e4fb58b26ea088c0ad92ec5b1ac9423ec1e65.tar.xz
hercules-857e4fb58b26ea088c0ad92ec5b1ac9423ec1e65.zip
Added missing initialization of some functions in the homunculus interface
- Fixes issue #7536 (thanks to jTynne for the report) http://hercules.ws/board/tracker/issue-7536-map-crash-july-15th/ - Minor corrections to the other interfaces as well (reordered initialization to follow the definitions, removed duplicate entry in the skill interface initialization, commented out some unused entries) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c48610d3c..4a457bd28 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -18139,8 +18139,8 @@ void script_defaults(void) {
script->hqs = script->hqis = 0;
memset(&script->hqe, 0, sizeof(script->hqe));
- script->buildin_count = 0;
script->buildin = NULL;
+ script->buildin_count = 0;
script->str_data = NULL;
script->str_data_size = 0;
@@ -18176,6 +18176,7 @@ void script_defaults(void) {
script->set_constant = script_set_constant;
script->set_constant2 = script_set_constant2;
script->get_constant = script_get_constant;
+ script->label_add = script_label_add;
script->queue = script_hqueue_get;
script->queue_add = script_hqueue_add;
@@ -18183,6 +18184,4 @@ void script_defaults(void) {
script->queue_remove = script_hqueue_remove;
script->queue_create = script_hqueue_create;
script->queue_clear = script_hqueue_clear;
-
- script->label_add = script_label_add;
}