summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorFlipp <mysteriousragnarok@hotmail.com>2013-05-17 15:18:51 -0700
committerFlipp <mysteriousragnarok@hotmail.com>2013-05-17 15:18:51 -0700
commitb3bc657a44a9fbdd1730f569855e25ccd0f8dd01 (patch)
treeba8dc9ee07be73d2cbb62e0a1f83d29d1fa6b7c8 /src/login
parent4ef9258f0f618857ed5d9e2f9e07f33dc6d13559 (diff)
parent9afe7f28d0e3f4c9bc3abba22d8055ae7dc46f45 (diff)
downloadhercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.gz
hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.bz2
hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.xz
hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.zip
Merge pull request #26 from Earisu/master
HPM Update
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c6
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;