summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-29 12:49:30 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-29 12:49:30 +0000
commit246bcf76ea27aa1fa94f6a751ee40bf32298460a (patch)
tree3a3ef9a0b9fc143c8a15df387f79f84fd5844e80 /src/map
parent133995b848e3fce1790148cc625047857362aae2 (diff)
downloadhercules-246bcf76ea27aa1fa94f6a751ee40bf32298460a.tar.gz
hercules-246bcf76ea27aa1fa94f6a751ee40bf32298460a.tar.bz2
hercules-246bcf76ea27aa1fa94f6a751ee40bf32298460a.tar.xz
hercules-246bcf76ea27aa1fa94f6a751ee40bf32298460a.zip
- Added some error reporting when a player is not found inside its guild/party while logging out.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12148 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/guild.c2
-rw-r--r--src/map/party.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 2d83e294e..b6db828ab 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -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;
}
diff --git a/src/map/party.c b/src/map/party.c
index 0f042db89..c6bfb2224 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -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;
}