summaryrefslogtreecommitdiff
path: root/src/map/pc.c
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/map/pc.c
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/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
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);