mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 14:25:24 +00:00
(svn r11820) -Fix: invalidate depot window when removing crashed train
This commit is contained in:
parent
712d4b6259
commit
704a75871a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user