Procházet zdrojové kódy

Fixed a typo in party invite code (from r11179 / r11180) causing party invitation to fail.
Closes bugreport:43.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11186 54d463be-8e91-2dee-dedb-b68131a5f0ec

ultramage před 17 roky
rodič
revize
9454d4d8f6
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/party.c

+ 1 - 0
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

+ 1 - 1
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));