diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-22 16:08:24 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-22 16:08:24 +0000 |
commit | f65bf4bd28cd9240c889bfd2a1f4650d91760a2d (patch) | |
tree | 6730a4d5ca802cc2c4cdb128dca07f1e95cac0fb /src/map/guild.c | |
parent | 6b0b62a5b2a9d85f60afe4fe048403101bd8f39d (diff) | |
download | hercules-f65bf4bd28cd9240c889bfd2a1f4650d91760a2d.tar.gz hercules-f65bf4bd28cd9240c889bfd2a1f4650d91760a2d.tar.bz2 hercules-f65bf4bd28cd9240c889bfd2a1f4650d91760a2d.tar.xz hercules-f65bf4bd28cd9240c889bfd2a1f4650d91760a2d.zip |
* Corrected Spiral Pierce's hits in the skill_db
* Moved /common/*.o into a obj folder when compiling
* Updated core and map server to jA 1094~1115
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1162 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r-- | src/map/guild.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index d0d7f14dd..ea9c3795f 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -477,8 +477,11 @@ int guild_recv_info(struct guild *sg) // イベントの発生 if( (ev=numdb_search(guild_infoevent_db,sg->guild_id))!=NULL ){ numdb_erase(guild_infoevent_db,sg->guild_id); - for(;ev;ev2=ev->next,aFree(ev),ev=ev2){ + while(ev){ npc_event_do(ev->name); + ev2=ev->next; + aFree(ev); + ev=ev2; } } @@ -1400,8 +1403,11 @@ int guild_castledataloadack(int castle_id,int index,int value) } if( (ev=numdb_search(guild_castleinfoevent_db,code))!=NULL ){ numdb_erase(guild_castleinfoevent_db,code); - for(;ev;ev2=ev->next,aFree(ev),ev=ev2){ + while(ev){ npc_event_do(ev->name); + ev2=ev->next; + aFree(ev); + ev=ev2; } } return 1; |