summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:04:32 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:04:32 +0000
commitbc8ac28af7554e42caa542aae2e334620860fe38 (patch)
tree6c65d4bdb96c44404ad496fc323ab142a2857d02 /src/map/guild.c
parentc515658d44a9d43f549c34ff8ae001170d57844e (diff)
downloadhercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.gz
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.bz2
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.xz
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.zip
Added some aFrees, ultramage is a jerk.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12536 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 658fe740f..0eae68b57 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -406,6 +406,7 @@ int guild_create(struct map_session_data *sd,char *name)
if(sd->status.guild_id || strlen(trim(tname)) < 2)
{
clif_guild_created(sd,1); // すでに所属している
+ aFree(tname);
return 0;
}
if(!battle_config.guild_emperium_check || pc_search_inventory(sd,714) >= 0) {
@@ -413,6 +414,7 @@ int guild_create(struct map_session_data *sd,char *name)
guild_makemember(&m,sd);
m.position=0;
intif_guild_create(name,&m);
+ aFree(tname);
return 1;
}
clif_guild_created(sd,3); // エンペリウムがいない