summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/party.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 2ffc46812..63ebfe88f 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/09/12
+ * Fixed a typo in r11179 causing party invitation to fail
* Added SI_STEELBODY properly (value from packet capture) [ultramage]
2007/09/10
* Corrected /invite letting you invite people even if you are not the party
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));