Bläddra i källkod

- Fixed null-pointer crash on Evolving a homunculus.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8319 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 år sedan
förälder
incheckning
7d04689685
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/mercenary.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.
 
 2006/08/16
+	* Fixed null-pointer crash on Evolving a homunculus. [Skotlex]
 	* @produce now can make any kind of equipment [Skotlex]
 	* Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster
 	  and target. [Skotlex]

+ 1 - 1
src/map/mercenary.c

@@ -353,7 +353,7 @@ int merc_hom_evolution(struct homun_data *hd)
 	y = hd->bl.y;
 	merc_hom_vaporize(sd, 0);
 	unit_free(&hd->bl);
-	merc_call_homunculus(hd->master, x, y);
+	merc_call_homunculus(sd, x, y);
 	clif_emotion(&sd->bl, 21) ;	//no1
 	clif_misceffect2(&hd->bl,568);
 	return 1 ;