浏览代码

Fixed headgears for autotraders (#5558)

Fixes #5408

Thanks to @gidzdlcrz
Lemongrass3110 4 年之前
父节点
当前提交
8053a72890
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/map/intif.cpp

+ 4 - 0
src/map/intif.cpp

@@ -3489,6 +3489,10 @@ static bool intif_parse_StorageReceived(int fd)
 #endif
 			//Set here because we need the inventory data for weapon sprite parsing.
 			status_set_viewdata(&sd->bl, sd->status.class_);
+			// Set headgear data here, otherwise this is done in loadEndAck
+			if( sd->state.autotrade ){
+				pc_set_costume_view(sd);
+			}
 			pc_load_combo(sd);
 			status_calc_pc(sd, (enum e_status_calc_opt)(SCO_FIRST|SCO_FORCE));
 			status_calc_weight(sd, (e_status_calc_weight_opt)(CALCWT_ITEM|CALCWT_MAXBONUS)); // Refresh weight data