summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-12 20:38:44 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-12 20:38:44 +0000
commit4bd3eb00fe774b2404958ffe597356e25a9dde4f (patch)
treee2301374270285dd35d6f81fd171ffb186774a68 /src
parent780f6e54ab9bbbe0d6302de2081a171153639fec (diff)
downloadhercules-4bd3eb00fe774b2404958ffe597356e25a9dde4f.tar.gz
hercules-4bd3eb00fe774b2404958ffe597356e25a9dde4f.tar.bz2
hercules-4bd3eb00fe774b2404958ffe597356e25a9dde4f.tar.xz
hercules-4bd3eb00fe774b2404958ffe597356e25a9dde4f.zip
Fixed a typo in party invite code (from r11179 / r11180) causing party invitation to fail.
Closes bugreport:43. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11186 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/party.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 763b553e1..7d6c871ab 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -268,7 +268,7 @@ int party_invite(struct map_session_data *sd,struct map_session_data *tsd)
return 0;
}
//Only leader can invite.
- ARR_FIND(0, MAX_PARTY, i, i < MAX_PARTY && p->data[i].sd != sd);
+ ARR_FIND(0, MAX_PARTY, i, p->data[i].sd == sd);
if (i == MAX_PARTY || !p->party.member[i].leader)
{ //TODO: Find the correct reply packet.
clif_displaymessage(sd->fd, msg_txt(282));