diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-07 16:57:12 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-07 16:57:12 +0000 |
commit | f2d07fe0484b42a099b41f2940351b7b2b1bf8f4 (patch) | |
tree | 76d67445355d2ef4b4990edfdc6bdd973810121b /src/map/guild.c | |
parent | 4862df1325bab71999a31fbbae196df361cea929 (diff) | |
download | hercules-f2d07fe0484b42a099b41f2940351b7b2b1bf8f4.tar.gz hercules-f2d07fe0484b42a099b41f2940351b7b2b1bf8f4.tar.bz2 hercules-f2d07fe0484b42a099b41f2940351b7b2b1bf8f4.tar.xz hercules-f2d07fe0484b42a099b41f2940351b7b2b1bf8f4.zip |
- Added missing creation/destruction of the expcache_ers in guild.c
- Unified status_remove_buffs/status_remove_debuffs into a single function.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5946 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r-- | src/map/guild.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index 5a4162730..cc5065c51 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -206,6 +206,7 @@ void do_init_guild(void) castle_db=db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_RELEASE_DATA,sizeof(int));
guild_expcache_db=db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_BASE,sizeof(int));
guild_infoevent_db=db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_BASE,sizeof(int));
+ expcache_ers = ers_new((uint32)sizeof(struct guild_expcache));
guild_castleinfoevent_db=db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_BASE,sizeof(int));
guild_read_castledb();
@@ -2002,4 +2003,5 @@ void do_final_guild(void) guild_expcache_db->destroy(guild_expcache_db,guild_expcache_db_final);
guild_infoevent_db->destroy(guild_infoevent_db,guild_infoevent_db_final);
guild_castleinfoevent_db->destroy(guild_castleinfoevent_db,guild_infoevent_db_final);
+ ers_destroy(expcache_ers);
}
|