From 3820bd7e7715bc84f458cf1bf466e6377a2d2e46 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 16 May 2013 22:15:59 -0300 Subject: Fixed setlook LOOK_BASE wasn't being handled despite being in the documentation. Special Thanks to Beret~! Signed-off-by: shennetsind --- src/common/mmo.h | 2 +- src/map/pc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/mmo.h b/src/common/mmo.h index ef9a6693e..d45dea212 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -51,7 +51,7 @@ #define PACKETVER 20120418 #endif -/// uncomment if your client is NOT ragexeRE (required because of conflicting packets in ragexe vs ragexeRE) +/// comment following line if your client is NOT ragexeRE (required because of conflicting packets in ragexe vs ragexeRE) #define PACKETVER_RE //Remove/Comment this line to disable sc_data saving. [Skotlex] diff --git a/src/map/pc.c b/src/map/pc.c index 49828071c..9b1545c51 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7550,6 +7550,9 @@ int pc_changelook(struct map_session_data *sd,int type,int val) nullpo_ret(sd); switch(type){ + case LOOK_BASE: + sd->vd.class_ = val; + break; case LOOK_HAIR: //Use the battle_config limits! [Skotlex] val = cap_value(val, MIN_HAIR_STYLE, MAX_HAIR_STYLE); -- cgit v1.2.3-70-g09d2