summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-09 13:36:03 -0300
committershennetsind <ind@henn.et>2013-05-09 13:36:03 -0300
commitf6316ec0dbe6357831698d9bbb8f5fc0cf428344 (patch)
tree4055f1190e0409fde3e2ec63bff431dd7276deef /src/map
parent697a0a1b9781c93ce91459e00c1cc11f271c18fc (diff)
downloadhercules-f6316ec0dbe6357831698d9bbb8f5fc0cf428344.tar.gz
hercules-f6316ec0dbe6357831698d9bbb8f5fc0cf428344.tar.bz2
hercules-f6316ec0dbe6357831698d9bbb8f5fc0cf428344.tar.xz
hercules-f6316ec0dbe6357831698d9bbb8f5fc0cf428344.zip
Fixed Bug #7222
http://hercules.ws/board/tracker/issue-7222-reloadatcommand-bug/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c3
1 files changed, 3 insertions, 0 deletions
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;