(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)

This commit is contained in:
hackykid
2005-06-05 20:45:04 +00:00
parent e878e4d815
commit c4b426ef8c
4 changed files with 4 additions and 4 deletions

View File

@@ -1343,7 +1343,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e)
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;