summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 18:41:05 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 18:41:05 +0000
commit6699c90798b52154bf6d4cd62cf151b312a12db1 (patch)
tree4a7a83d78d89284f4d0e5a6eb991a6adf521a579 /src/map/guild.c
parentb5bfcd51b5544f76bf68c14d5c13f80d922290f0 (diff)
downloadhercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.gz
hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.bz2
hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.xz
hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.zip
- If someone is expulsed from a guild while the guild storage is open, it will be auto-closed now.
- Modified battle_consume_ammo to prevent consuming multiple arrows on AC_SHOWER. - Readded script command skillpointcount. (who removed it? <.<) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6406 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 0c71ee293..820e17484 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -851,7 +851,8 @@ int guild_member_leaved(int guild_id,int account_id,int char_id,int flag,
clif_guild_memberlist(online_member_sd);
if(sd != NULL && sd->status.guild_id == guild_id) {
-
+ if (sd->state.storage_flag == 2) //Close the guild storage.
+ storage_guild_storageclose(sd);
sd->status.guild_id=0;
sd->guild_emblem_id=0;
sd->state.guild_sent=0;