From 5c9db014d2a4522df865b789e1b0eabd9e4ab68d Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 7 May 2008 20:20:40 +0000 Subject: - Corrected default guild positions not being saved during guild creation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12690 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/char_sql/int_guild.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 47bc5d370..bd0d16f0b 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2008/05/07 + * Corrected default guild positions not being saved during guild creation. * Did some cleanup of the splash code, the NPC_WIDE* skills now send the 'preamble' packet, which for the most part correct their skill animation display. diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c index a63bc951b..00f4759d4 100644 --- a/src/char_sql/int_guild.c +++ b/src/char_sql/int_guild.c @@ -1276,8 +1276,11 @@ int mapif_parse_CreateGuild(int fd,int account_id,char *name,struct guild_member g->position[0].mode=0x11; strcpy(g->position[0].name,"GuildMaster"); strcpy(g->position[MAX_GUILDPOSITION-1].name,"Newbie"); - for(i=1;iposition[0].modified = g->position[MAX_GUILDPOSITION-1].modified = GS_POSITION_MODIFIED; + for(i=1;iposition[i].name,"Position %d",i+1); + g->position[i].modified = GS_POSITION_MODIFIED; + } // Initialize guild property g->max_member=16; -- cgit v1.2.3-70-g09d2