From f6316ec0dbe6357831698d9bbb8f5fc0cf428344 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 9 May 2013 13:36:03 -0300 Subject: Fixed Bug #7222 http://hercules.ws/board/tracker/issue-7222-reloadatcommand-bug/ Signed-off-by: shennetsind --- src/map/atcommand.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 1877571e0..bf536f152 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -10202,6 +10202,7 @@ void atcommand_db_clear(void) { dbi_destroy(iter); db_destroy(atcommand->db); + atcommand->db = NULL; } if (atcommand->alias_db != NULL) db_destroy(atcommand->alias_db); @@ -10218,6 +10219,8 @@ void atcommand_doload(void) { } void do_init_atcommand(void) { + atcommand->db = NULL; + atcommand->alias_db = NULL; atcommand->at_symbol = '@'; atcommand->char_symbol = '#'; atcommand->binding_count = 0; -- cgit v1.2.3-60-g2f50