mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 03:48:43 +00:00
(svn r21990) -Cleanup (r14085): Remove unneeded test.
This commit is contained in:
parent
9aa185572b
commit
2fbecaf4bf
@ -1107,7 +1107,7 @@ static inline void ChangeVehicleWindow(WindowClass window_class, VehicleID from_
|
||||
if (w != NULL) {
|
||||
w->window_number = to_index;
|
||||
if (w->viewport != NULL) w->viewport->follow_vehicle = to_index;
|
||||
if (to_index != INVALID_VEHICLE) w->InvalidateData();
|
||||
w->InvalidateData();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user