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
+2 -2
View File
@@ -839,7 +839,7 @@ struct DepotWindow : Window {
break;
case WID_D_AUTOREPLACE:
Command<CMD_DEPOT_MASS_AUTOREPLACE>::Post(TileIndex(this->window_number), this->type);
Command<CMD_DEPOT_MASS_AUTOREPLACE>::Post(GetCmdAutoreplaceVehMsg(this->type), TileIndex(this->window_number), this->type);
break;
}
@@ -1152,7 +1152,7 @@ static void DepotSellAllConfirmationCallback(Window *win, bool confirmed)
DepotWindow *w = (DepotWindow*)win;
TileIndex tile(w->window_number);
VehicleType vehtype = w->type;
Command<CMD_DEPOT_SELL_ALL_VEHICLES>::Post(tile, vehtype);
Command<CMD_DEPOT_SELL_ALL_VEHICLES>::Post(GetCmdSellAllVehMsg(vehtype), tile, vehtype);
}
}