diff options
author | frosch <frosch@openttd.org> | 2011-02-05 23:02:52 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-05 23:02:52 +0000 |
commit | 2fbecaf4bf13629c73802f1d07e157bce0df82af (patch) | |
tree | 7b84ee24bc1130e20063e00a02720c3fc59198c2 | |
parent | 9aa185572b09f9be9484d09ec97444094de88a9b (diff) | |
download | openttd-2fbecaf4bf13629c73802f1d07e157bce0df82af.tar.xz |
(svn r21990) -Cleanup (r14085): Remove unneeded test.
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index eaa88674c..0b89cd027 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -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(); } } |