diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-11 20:11:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-11 23:17:11 +0300 |
commit | ec38bdbbed042537eb171eaf4436d7b250ab6766 (patch) | |
tree | a56a797b58da6fd117d3dc9944c99534a08a7465 /src/login/login.c | |
parent | fe6599de91dbab781e37fbded66cfecb685041cf (diff) | |
download | hercules-ec38bdbbed042537eb171eaf4436d7b250ab6766.tar.gz hercules-ec38bdbbed042537eb171eaf4436d7b250ab6766.tar.bz2 hercules-ec38bdbbed042537eb171eaf4436d7b250ab6766.tar.xz hercules-ec38bdbbed042537eb171eaf4436d7b250ab6766.zip |
add AccountDB into login interface.
Diffstat (limited to 'src/login/login.c')
-rw-r--r-- | src/login/login.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/login.c b/src/login/login.c index 03921a413..b9de09fcd 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1945,8 +1945,6 @@ int do_init(int argc, char** argv) { int i; - login_defaults(); - // initialize engine (to accept config settings) account_engine[0].db = account_engine[0].constructor(); accounts = account_engine[0].db; @@ -1955,6 +1953,8 @@ int do_init(int argc, char** argv) exit(EXIT_FAILURE); } + login_defaults(); + // read login-server configuration login_set_defaults(); @@ -2045,6 +2045,7 @@ void login_defaults(void) { login = &login_s; login->lc = &login_config; + login->accounts = accounts; login->mmo_auth = login_mmo_auth; login->mmo_auth_new = login_mmo_auth_new; |