Fix: Missing error messages with sell- and autoreplace-all commands. (#13469)

If these commands failed then then the error message part was blank.
This commit is contained in:
Peter Nelson
2025-02-04 22:30:42 +00:00
committed by GitHub
parent 603630c1ae
commit ffb5e71a28
4 changed files with 40 additions and 2 deletions

View File

@@ -59,6 +59,20 @@ const StringID _veh_sell_msg_table[] = {
STR_ERROR_CAN_T_SELL_AIRCRAFT,
};
const StringID _veh_sell_all_msg_table[] = {
STR_ERROR_CAN_T_SELL_ALL_TRAIN,
STR_ERROR_CAN_T_SELL_ALL_ROAD_VEHICLE,
STR_ERROR_CAN_T_SELL_ALL_SHIP,
STR_ERROR_CAN_T_SELL_ALL_AIRCRAFT,
};
const StringID _veh_autoreplace_msg_table[] = {
STR_ERROR_CAN_T_AUTOREPLACE_TRAIN,
STR_ERROR_CAN_T_AUTOREPLACE_ROAD_VEHICLE,
STR_ERROR_CAN_T_AUTOREPLACE_SHIP,
STR_ERROR_CAN_T_AUTOREPLACE_AIRCRAFT,
};
const StringID _veh_refit_msg_table[] = {
STR_ERROR_CAN_T_REFIT_TRAIN,
STR_ERROR_CAN_T_REFIT_ROAD_VEHICLE,