summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 02:55:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 02:55:24 +0000
commit93dca33bf53ddeba191f553e816ba7bb72774cc0 (patch)
tree04a8cb4c44c1d940b39c3d65c795c66cfd89aa73 /src/map/guild.c
parent91a25bb1534462030596bcd17784cd91e95cd88a (diff)
downloadhercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.gz
hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.bz2
hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.xz
hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.zip
- Applied the necessary changes to make @partyoption reflect it's changes on the alt+p window.
- Some code indentation cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7905 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 0d2f2cad1..5c3b2da4a 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -869,7 +869,6 @@ int guild_member_leaved(int guild_id,int account_id,int char_id,int flag,
int guild_send_memberinfoshort(struct map_session_data *sd,int online)
{ // cleaned up [LuzZza]
-
struct guild *g;
nullpo_retr(0, sd);
@@ -887,18 +886,16 @@ int guild_send_memberinfoshort(struct map_session_data *sd,int online)
intif_guild_memberinfoshort(g->guild_id,
sd->status.account_id,sd->status.char_id,online,sd->status.base_level,sd->status.class_);
- if(!online) //REMOVE sd pointer or you get a dangling pointer! [Skotlex]
- {
- int i = guild_getindex(g,sd->status.account_id,sd->status.char_id);
- if (i >= 0)
- g->member[i].sd = NULL;
+ if(!online){
+ int i=guild_getindex(g,sd->status.account_id,sd->status.char_id);
+ if(i>=0)
+ g->member[i].sd=NULL;
+ return 0;
}
if(sd->state.guild_sent)
return 0;
-// guild_check_conflict(sd); // Check if char belongs to more than one guild? Should be unneeded.
-
clif_guild_belonginfo(sd,g);
clif_guild_notice(sd,g);