summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
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;