summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-08 06:25:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-08 06:25:50 +0000
commit1811436903c5383e8f3eeacdd88bd7eece6c7998 (patch)
treeb4a27aeffa94aba20353aaf7ae64b674407d37db /src/map/status.c
parent4f23ac6a3862cbf1b1cbd8bea240c9fdf9290937 (diff)
downloadhercules-1811436903c5383e8f3eeacdd88bd7eece6c7998.tar.gz
hercules-1811436903c5383e8f3eeacdd88bd7eece6c7998.tar.bz2
hercules-1811436903c5383e8f3eeacdd88bd7eece6c7998.tar.xz
hercules-1811436903c5383e8f3eeacdd88bd7eece6c7998.zip
- Likely fixed a mob not returning to their original class view on respawn after they changed class.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5952 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 336b9165d..9b0dbfc03 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2329,8 +2329,8 @@ int status_quick_recalc_speed(struct map_session_data *sd, int skill_num, int sk
int status_get_class(struct block_list *bl)
{
nullpo_retr(0, bl);
- if(bl->type==BL_MOB)
- return ((struct mob_data *)bl)->class_;
+ if(bl->type==BL_MOB) //Class used on all code should be the view class of the mob.
+ return ((struct mob_data *)bl)->vd->class_;
if(bl->type==BL_PC)
return ((struct map_session_data *)bl)->status.class_;
if(bl->type==BL_PET)