diff options
Diffstat (limited to 'src/map/mapreg_sql.c')
-rw-r--r-- | src/map/mapreg_sql.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/mapreg_sql.c b/src/map/mapreg_sql.c index 6df614aac..c2a35f930 100644 --- a/src/map/mapreg_sql.c +++ b/src/map/mapreg_sql.c @@ -263,8 +263,11 @@ void mapreg_reload(void) { db_clear(mapreg->db); db_clear(mapreg->str_db); - if( mapreg->array_db ) + if( mapreg->array_db ) { mapreg->array_db->destroy(mapreg->array_db,script->array_free_db); + mapreg->array_db = NULL; + } + mapreg->load(); } |