diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-15 18:35:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-15 18:35:18 +0000 |
commit | fcc3b82cb7a3676ba7bb9c7901012b7c06e5f7b3 (patch) | |
tree | 318c6c8626375d793cb395cd3dd4d09ce70c4344 /src/char_sql/int_guild.c | |
parent | 07171348bda5027a11a13e1d946fffc48a0ead09 (diff) | |
download | hercules-fcc3b82cb7a3676ba7bb9c7901012b7c06e5f7b3.tar.gz hercules-fcc3b82cb7a3676ba7bb9c7901012b7c06e5f7b3.tar.bz2 hercules-fcc3b82cb7a3676ba7bb9c7901012b7c06e5f7b3.tar.xz hercules-fcc3b82cb7a3676ba7bb9c7901012b7c06e5f7b3.zip |
- Fixed the nocast flag 2 (not usable in pvp) returning true in pk-mode servers.
- When removing a castle's owning guild, the char servers will erase the guardian data now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6602 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_guild.c')
-rw-r--r-- | src/char_sql/int_guild.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c index b3da7ea91..ed30c7031 100644 --- a/src/char_sql/int_guild.c +++ b/src/char_sql/int_guild.c @@ -1752,6 +1752,10 @@ int mapif_parse_GuildCastleDataSave(int fd,int castle_id,int index,int value) (g)?g->name:"??" ,gid, (value)?"occupy":"abandon", castle_id);
}
gc.guild_id = value;
+ if(gc.guild_id == 0) {
+ //Delete guardians.
+ memset(&gc.guardian, 0, sizeof(gc.guardian));
+ }
break;
case 2: gc.economy = value; break;
case 3: gc.defense = value; break;
|