changeset 17250:0c4b996455b2 draft

(svn r21990) -Cleanup (r14085): Remove unneeded test.
author frosch <frosch@openttd.org>
date Sat, 05 Feb 2011 23:02:52 +0000
parents 00cd0c521579
children ee3dc725dbcc
files src/vehicle_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1107,7 +1107,7 @@
 	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();
 	}
 }