order_gui.c
changeset 4782 6aa485b21dae
parent 4719 fc6e14219f72
child 4935 1eeda247f1ea
equal deleted inserted replaced
4781:3e0c04509b05 4782:6aa485b21dae
   168 					}
   168 					}
   169 
   169 
   170 					if (order->flags & OF_FULL_LOAD) s++; /* service at */
   170 					if (order->flags & OF_FULL_LOAD) s++; /* service at */
   171 
   171 
   172 					SetDParam(1, s);
   172 					SetDParam(1, s);
   173 					if (order->refit_cargo == CT_NO_REFIT) {
   173 					if (order->refit_cargo < NUM_CARGO) {
   174 						SetDParam(3, STR_EMPTY);
       
   175 					} else {
       
   176 						SetDParam(3, STR_REFIT_ORDER);
   174 						SetDParam(3, STR_REFIT_ORDER);
   177 						SetDParam(4, _cargoc.names_s[order->refit_cargo]);
   175 						SetDParam(4, _cargoc.names_s[order->refit_cargo]);
       
   176 					} else {
       
   177 						SetDParam(3, STR_EMPTY);
   178 					}
   178 					}
   179 					break;
   179 					break;
   180 				}
   180 				}
   181 
   181 
   182 				case OT_GOTO_WAYPOINT:
   182 				case OT_GOTO_WAYPOINT: