summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2018-03-04 16:47:53 +0530
committerDastgir Pojee <dastgirp@gmail.com>2018-03-04 16:47:53 +0530
commit798adfb920d19939d1aa05a15c9747f855f6e0c2 (patch)
tree2473abd32df94bc920b53537ce29a53ffbba1e00
parentea964c75ac213eab98e22cce938d8bf141071179 (diff)
downloadhercules-798adfb920d19939d1aa05a15c9747f855f6e0c2.tar.gz
hercules-798adfb920d19939d1aa05a15c9747f855f6e0c2.tar.bz2
hercules-798adfb920d19939d1aa05a15c9747f855f6e0c2.tar.xz
hercules-798adfb920d19939d1aa05a15c9747f855f6e0c2.zip
Fixes crash on DB2SQL Plugin.
ClanDB was uninitialized when minimal configuration was required. Fixes #1984
-rw-r--r--src/map/clan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clan.c b/src/map/clan.c
index 865f5a4cd..7aa9be5d4 100644
--- a/src/map/clan.c
+++ b/src/map/clan.c
@@ -997,10 +997,11 @@ void clan_reload(void)
*/
void do_init_clan(bool minimal)
{
+ clan->db = idb_alloc(DB_OPT_RELEASE_DATA);
+
if (minimal) {
return;
}
- clan->db = idb_alloc(DB_OPT_RELEASE_DATA);
clan->config_read(false);
timer->add_func_list(clan->inactivity_kick, "clan_inactivity_kick");
}