From f2d07fe0484b42a099b41f2940351b7b2b1bf8f4 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 7 Apr 2006 16:57:12 +0000 Subject: - 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 --- src/map/guild.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/guild.c') 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); } -- cgit v1.2.3-70-g09d2