mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 11:59:26 +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) {
|
if (w != NULL) {
|
||||||
w->window_number = to_index;
|
w->window_number = to_index;
|
||||||
if (w->viewport != NULL) w->viewport->follow_vehicle = 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