(svn r11820) -Fix: invalidate depot window when removing crashed train
This commit is contained in:
@@ -3118,6 +3118,9 @@ static void DeleteLastWagon(Vehicle *v)
|
||||
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
|
||||
RebuildVehicleLists();
|
||||
InvalidateWindow(WC_COMPANY, v->owner);
|
||||
if (v->u.rail.track == TRACK_BIT_DEPOT) {
|
||||
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
|
||||
}
|
||||
|
||||
BeginVehicleMove(v);
|
||||
EndVehicleMove(v);
|
||||
|
Reference in New Issue
Block a user