summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-22 02:42:12 +0000
committerGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-22 02:42:12 +0000
commitcd018da2b39249aa6f1b34a4464348e3d7c1accd (patch)
tree9938b3285c44948d25d454fa79a7ccb8b90af6b9
parent664aa469ab0796b2d49f29bd44e95a39503c604b (diff)
downloadhercules-cd018da2b39249aa6f1b34a4464348e3d7c1accd.tar.gz
hercules-cd018da2b39249aa6f1b34a4464348e3d7c1accd.tar.bz2
hercules-cd018da2b39249aa6f1b34a4464348e3d7c1accd.tar.xz
hercules-cd018da2b39249aa6f1b34a4464348e3d7c1accd.zip
* Fixed possible client crash when monster is class-changing to mob_avail'd one.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14754 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/mob.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 74846aaba..a5e120daa 100644
--- a/Changelog-Trunk.txt
+++ b/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).
diff --git a/src/map/mob.c b/src/map/mob.c
index 6135850b6..9bd8c086c 100644
--- a/src/map/mob.c
+++ b/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.