Browse Source

Hair color fix for bugreport:5253, blame on r15449

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15497 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
f58469b12b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/status.c

+ 1 - 1
src/map/status.c

@@ -5090,7 +5090,7 @@ void status_set_viewdata(struct block_list *bl, int class_)
 				sd->vd.head_mid = sd->status.head_mid;
 				sd->vd.head_mid = sd->status.head_mid;
 				sd->vd.head_bottom = sd->status.head_bottom;
 				sd->vd.head_bottom = sd->status.head_bottom;
 				sd->vd.hair_style = cap_value(sd->status.hair,0,battle_config.max_hair_style);
 				sd->vd.hair_style = cap_value(sd->status.hair,0,battle_config.max_hair_style);
-				sd->vd.hair_color = cap_value(sd->status.hair,0,battle_config.max_hair_color);
+				sd->vd.hair_color = cap_value(sd->status.hair_color,0,battle_config.max_hair_color);
 				sd->vd.cloth_color = cap_value(sd->status.clothes_color,0,battle_config.max_cloth_color);
 				sd->vd.cloth_color = cap_value(sd->status.clothes_color,0,battle_config.max_cloth_color);
 				sd->vd.sex = sd->status.sex;
 				sd->vd.sex = sd->status.sex;
 			} else if (vd)
 			} else if (vd)