summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
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/char/int_guild.c
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/char/int_guild.c')
-rw-r--r--src/char/int_guild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index b666cadae..e1e012725 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -57,7 +57,7 @@ static int guild_save_timer(int tid, unsigned int tick, int id, intptr_t data)
if( last_id == 0 ) //Save the first guild in the list.
state = 1;
- for( g = db_data2ptr(iter->first(iter, &key)); dbi_exists(iter); g = db_data2ptr(iter->next(iter, &key)) )
+ for( g = DB->data2ptr(iter->first(iter, &key)); dbi_exists(iter); g = DB->data2ptr(iter->next(iter, &key)) )
{
if( state == 0 && g->guild_id == last_id )
state++; //Save next guild in the list.
@@ -739,7 +739,7 @@ int inter_guild_sql_init(void)
*/
static int guild_db_final(DBKey key, DBData *data, va_list ap)
{
- struct guild *g = db_data2ptr(data);
+ struct guild *g = DB->data2ptr(data);
if (g->save_flag&GS_MASK) {
inter_guild_tosql(g, g->save_flag&GS_MASK);
return 1;