summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-17 14:12:06 -0300
committershennetsind <ind@henn.et>2013-05-17 14:12:06 -0300
commit6666609abcfa09f09a7b24c2b7f23fe83acc6585 (patch)
treebec3a846c14fe9a63e86e6620fc0ca153f70b0ec /src
parent346dd126a746335d8839b8066a90f368edd554be (diff)
downloadhercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.gz
hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.bz2
hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.xz
hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.zip
Fixed Look_Base not refreshing skill tree
special thanks to Beret~! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/common/mapindex.c2
-rw-r--r--src/map/pc.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index b693fe12d..83de21b2b 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -148,7 +148,7 @@ void mapindex_init(void) {
exit(EXIT_FAILURE); //Server can't really run without this file.
}
memset (&indexes, 0, sizeof (indexes));
- mapindex_db = strdb_alloc(DB_OPT_RELEASE_KEY, MAP_NAME_LENGTH);
+ mapindex_db = strdb_alloc(DB_OPT_DUP_KEY, MAP_NAME_LENGTH);
while(fgets(line, sizeof(line), fp)) {
if(line[0] == '/' && line[1] == '/')
continue;
diff --git a/src/map/pc.c b/src/map/pc.c
index 0f221f298..644a296cf 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7542,7 +7542,13 @@ int pc_changelook(struct map_session_data *sd,int type,int val)
switch(type){
case LOOK_BASE:
- sd->vd.class_ = val;
+ status_set_viewdata(&sd->bl, val);
+ clif->changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
+ clif->changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
+ if (sd->vd.cloth_color)
+ clif->changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
+ clif->skillinfoblock(sd);
+ return 0;
break;
case LOOK_HAIR: //Use the battle_config limits! [Skotlex]
val = cap_value(val, MIN_HAIR_STYLE, MAX_HAIR_STYLE);