diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-12 20:38:44 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-12 20:38:44 +0000 |
commit | 4bd3eb00fe774b2404958ffe597356e25a9dde4f (patch) | |
tree | e2301374270285dd35d6f81fd171ffb186774a68 | |
parent | 780f6e54ab9bbbe0d6302de2081a171153639fec (diff) | |
download | hercules-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
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/map/party.c | 2 |
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)); |