train_gui.c
changeset 1906 f5ae1d8ad052
parent 1905 f43d9e821deb
child 1907 cebdef7a1c8a
--- a/train_gui.c	Sun Jun 05 15:37:00 2005 +0000
+++ b/train_gui.c	Sun Jun 05 20:45:04 2005 +0000
@@ -1343,7 +1343,7 @@
 
 			tile = _last_built_train_depot_tile;
 			do {
-				if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_RAIL)) {
+				if (IsTileDepotType(tile, TRANSPORT_RAIL) && IsTileOwner(tile, _local_player)) {
 					ShowTrainDepotWindow(tile);
 					ShowBuildTrainWindow(tile);
 					return;