- Added some error reporting when a player is not found inside its guild/party while logging out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12148 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
96dfe6b827
commit
e727c51605
@ -848,6 +848,8 @@ int guild_send_memberinfoshort(struct map_session_data *sd,int online)
|
||||
int i=guild_getindex(g,sd->status.account_id,sd->status.char_id);
|
||||
if(i>=0)
|
||||
g->member[i].sd=NULL;
|
||||
else
|
||||
ShowError("guild_send_memberinfoshort: Failed to locate member %d:%d in guild %d!\n", sd->status.account_id, sd->status.char_id, g->guild_id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -589,6 +589,8 @@ int party_send_logout(struct map_session_data *sd)
|
||||
ARR_FIND( 0, MAX_PARTY, i, p->data[i].sd == sd );
|
||||
if( i < MAX_PARTY )
|
||||
memset(&p->data[i], 0, sizeof(p->data[0]));
|
||||
else
|
||||
ShowError("party_send_logout: Failed to locate member %d:%d in party %d!\n", sd->status.account_id, sd->status.char_id, p->party.party_id);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user