Преглед на файлове

- Fixed the intif party creation packet having the incorrect size sent, hence causing the leader's level to be read as garbage (which caused the "impossible to even share" bug).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7780 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex преди 19 години
родител
ревизия
5587ea7cd6
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/intif.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ 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.
 
 2006/07/20
+	* Fixed the intif party creation packet having the incorrect size sent,
+	  hence causing the leader's level to be read as garbage (which caused the
+	  "impossible to even share" bug). [Skotlex]
 	* Added pc_check_weapontype to do a proper skill weapon check that takes
 	  into account dual-wielding. That is, if a skill can be used with
 	  daggers/axes, you'll be able to use the skill when dual-wielding them.

+ 1 - 1
src/map/intif.c

@@ -381,7 +381,7 @@ int intif_create_party(struct party_member *member,char *name,int item,int item2
 
 	WFIFOHEAD(inter_fd,64);
 	WFIFOW(inter_fd,0) = 0x3020;
-	WFIFOW(inter_fd,2) = 24+2+sizeof(struct party_member);
+	WFIFOW(inter_fd,2) = 30+sizeof(struct party_member);
 	memcpy(WFIFOP(inter_fd,4),name, NAME_LENGTH);
 	WFIFOB(inter_fd,28)= item;
 	WFIFOB(inter_fd,29)= item2;