summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-16 22:15:59 -0300
committershennetsind <ind@henn.et>2013-05-16 22:15:59 -0300
commit3820bd7e7715bc84f458cf1bf466e6377a2d2e46 (patch)
tree94375d540040c815110fd4b905e0e3de928df91c /src
parentfbd043f22a4b7ffa5eb6244897f923198200056f (diff)
downloadhercules-3820bd7e7715bc84f458cf1bf466e6377a2d2e46.tar.gz
hercules-3820bd7e7715bc84f458cf1bf466e6377a2d2e46.tar.bz2
hercules-3820bd7e7715bc84f458cf1bf466e6377a2d2e46.tar.xz
hercules-3820bd7e7715bc84f458cf1bf466e6377a2d2e46.zip
Fixed setlook
LOOK_BASE wasn't being handled despite being in the documentation. Special Thanks to Beret~! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/common/mmo.h2
-rw-r--r--src/map/pc.c3
2 files changed, 4 insertions, 1 deletions
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);