From 76f096c1af7089c59a8cfd763658531d839dea9b Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 14 Jun 2013 09:17:54 -0300 Subject: 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 --- src/map/packets.h | 2 +- src/map/script.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/packets.h b/src/map/packets.h index d0910f183..756e053d1 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -2246,7 +2246,7 @@ packet(0x020d,-1); #endif #if PACKETVER >= 20130612 - packetKeys(0x295B0FCB, 0x3C000FCF, 0x6D166F66); /* Thanks to Shakto */ + packetKeys(0x6D166F66, 0x3C000FCF, 0x295B0FCB); /* Thanks to Shakto */ #endif #endif /* _PACKETS_H_ */ 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; } -- cgit v1.2.3-70-g09d2