diff options
author | shennetsind <ind@henn.et> | 2013-06-14 09:17:54 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-14 09:17:54 -0300 |
commit | 76f096c1af7089c59a8cfd763658531d839dea9b (patch) | |
tree | 19e5dea2cb10a17b591439bb706b433abf890d64 /src/map/script.c | |
parent | 0f7879b1d2c9cd6ddbedcc7f359e4f981690ef46 (diff) | |
download | hercules-76f096c1af7089c59a8cfd763658531d839dea9b.tar.gz hercules-76f096c1af7089c59a8cfd763658531d839dea9b.tar.bz2 hercules-76f096c1af7089c59a8cfd763658531d839dea9b.tar.xz hercules-76f096c1af7089c59a8cfd763658531d839dea9b.zip |
Fixed Bug #7365
Special Thanks to Axiom
http://hercules.ws/board/tracker/issue-7365-scriptc-error/
Also fixed packetKeys order for 2013-06-12
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 60f741d6c..f3bf2470a 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -2786,7 +2786,7 @@ void script_free_state(struct script_state* st) script->pop_stack(st, 0, st->stack->sp); aFree(st->stack->stack_data); aFree(st->stack); - if( st->script->script_vars && !db_size(st->script->script_vars) ) { + if( st->script && st->script->script_vars && !db_size(st->script->script_vars) ) { script_free_vars(st->script->script_vars); st->script->script_vars = NULL; } |