瀏覽代碼

* Fixed possible client crash when monster is class-changing to mob_avail'd one.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14754 54d463be-8e91-2dee-dedb-b68131a5f0ec
Gepard 14 年之前
父節點
當前提交
4698c6c569
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/mob.c

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2011/03/22
+	* Fixed possible client crash when monster is class-changing to mob_avail'd one. [Gepard]
 2011/03/20
 	* Random accumulated tweaks and fixes. [Ai4rei]
 	- Added a error message to npc_enable, to spot disablenpc/enablenpc/hideoffnpc/hideonnpc on non-existing NPCs (related r14750).

+ 1 - 1
src/map/mob.c

@@ -2586,7 +2586,7 @@ int mob_class_change (struct mob_data *md, int class_)
 	mob_stop_walking(md, 0);
 	unit_skillcastcancel(&md->bl, 0);
 	status_set_viewdata(&md->bl, class_);
-	clif_mob_class_change(md,class_);
+	clif_mob_class_change(md,md->vd->class_);
 	status_calc_mob(md, 1);
 	md->ud.state.speed_changed = 1; //Speed change update.