diff options
author | shennetsind <ind@henn.et> | 2013-05-17 22:03:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-17 22:03:06 -0300 |
commit | 21bbfad48084190b8a6881ee3b277993418a5137 (patch) | |
tree | 2c8cf1d4a83bb0a7bea2a7e81c003fc240185207 /src/login | |
parent | 104bb6c05dc8effef9db715f0b708d4548e10010 (diff) | |
parent | b3bc657a44a9fbdd1730f569855e25ccd0f8dd01 (diff) | |
download | hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.gz hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.bz2 hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.xz hercules-21bbfad48084190b8a6881ee3b277993418a5137.zip |
Follow up b3bc657a44a9fbdd1730f569855e25ccd0f8dd01
Adjusting it to the ERS modification, my IDE automatically fixed some indentation that i guess was accidentally removed.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c index 09dd938db..8dd5ce20a 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -109,7 +109,7 @@ static DBData create_online_user(DBKey key, va_list args) p->account_id = key.i; p->char_server = -1; p->waiting_disconnect = INVALID_TIMER; - return db_ptr2data(p); + return DB->ptr2data(p); } struct online_login_data* add_online_user(int char_server, int account_id) @@ -154,7 +154,7 @@ static int waiting_disconnect_timer(int tid, unsigned int tick, int id, intptr_t */ static int online_db_setoffline(DBKey key, DBData *data, va_list ap) { - struct online_login_data* p = db_data2ptr(data); + struct online_login_data* p = DB->data2ptr(data); int server = va_arg(ap, int); if( server == -1 ) { @@ -175,7 +175,7 @@ static int online_db_setoffline(DBKey key, DBData *data, va_list ap) */ static int online_data_cleanup_sub(DBKey key, DBData *data, va_list ap) { - struct online_login_data *character= db_data2ptr(data); + struct online_login_data *character= DB->data2ptr(data); if (character->char_server == -2) //Unknown server.. set them offline remove_online_user(character->account_id); return 0; |