Bläddra i källkod

Fixed a crash when a homun kills a mvp and the char that did the most damage is unable to carry the mvp reward (bugreport:1114)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12308 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 år sedan
förälder
incheckning
8257a27590
2 ändrade filer med 4 tillägg och 1 borttagningar
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/mob.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/03/06
+	* Fixed a crash when a homun kills a mvp and the char that did
+	  the most damage is unable to carry the mvp reward (bugreport:1114)
 2008/03/05
 	* Added code to clear the Illusionary Shadow effect (followup to r12293)
 	* Added some trim() calls into mapflag code (followup to r12238)

+ 1 - 1
src/map/mob.c

@@ -2259,7 +2259,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 			}
 
 			if((temp = pc_additem(mvp_sd,&item,1)) != 0) {
-				clif_additem(sd,0,0,temp);
+				clif_additem(mvp_sd,0,0,temp);
 				map_addflooritem(&item,1,mvp_sd->bl.m,mvp_sd->bl.x,mvp_sd->bl.y,mvp_sd->status.char_id,(second_sd?second_sd->status.char_id:0),(third_sd?third_sd->status.char_id:0),1);
 			}