Browse Source

Fixed headgears for autotraders (#5558)

Fixes #5408

Thanks to @gidzdlcrz
Lemongrass3110 4 years ago
parent
commit
8053a72890
1 changed files with 4 additions and 0 deletions
  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