(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P

This commit is contained in:
Darkvater 2005-05-08 20:53:02 +00:00
parent 8d392cf5c7
commit 74671bd2c9

View File

@ -935,6 +935,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
DeleteWindowById(WC_VEHICLE_VIEW, first->index); DeleteWindowById(WC_VEHICLE_VIEW, first->index);
InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train); InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train);
InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
RebuildVehicleLists();
} }
switch (p2) { switch (p2) {