Переглянути джерело

Fixed a mistake in r11344 that caused the 'my shop' window to display info about cards slotted in items incorrectly (bugreport:1502).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12704 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 роки тому
батько
коміт
dca2adcfd4
2 змінених файлів з 4 додано та 1 видалено
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/clif.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2008/05/13
+	* Fixed a mistake in r11344 that caused the 'my shop' window to display
+	  info about cards slotted in items incorrectly (bugreport:1502)
 2008/05/12
 	* Fixed a script engine problem where warping away while having a menu
 	  window open and talking to an another npc with a menu would produce

+ 1 - 1
src/map/clif.c

@@ -5230,7 +5230,7 @@ void clif_openvending(struct map_session_data* sd, int id, struct s_vending* ven
 		WFIFOB(fd,19+i*22) = sd->status.cart[index].identify;
 		WFIFOB(fd,20+i*22) = sd->status.cart[index].attribute;
 		WFIFOB(fd,21+i*22) = sd->status.cart[index].refine;
-		clif_addcards(WFIFOP(fd,22+count*22), &sd->status.cart[index]);
+		clif_addcards(WFIFOP(fd,22+i*22), &sd->status.cart[index]);
 	}
 	WFIFOSET(fd,WFIFOW(fd,2));
 }