- 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
This commit is contained in:
skotlex 2006-08-16 18:23:28 +00:00
parent 04d969e781
commit 7d04689685
2 changed files with 2 additions and 1 deletions

View File

@ -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. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/16 2006/08/16
* Fixed null-pointer crash on Evolving a homunculus. [Skotlex]
* @produce now can make any kind of equipment [Skotlex] * @produce now can make any kind of equipment [Skotlex]
* Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster * Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster
and target. [Skotlex] and target. [Skotlex]

View File

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