| author | belugas |
| Thu, 24 Apr 2008 18:17:53 +0000 | |
| changeset 10333 | 01925c5d0d13 |
| parent 10332 | 66549710afdb |
| child 10334 | 3702a2908e09 |
--- a/src/station_cmd.cpp Thu Apr 24 17:53:45 2008 +0000 +++ b/src/station_cmd.cpp Thu Apr 24 18:17:53 2008 +0000 @@ -1714,7 +1714,7 @@ if (flags & DC_EXEC) { st = new Station(); - st->town = ClosestTownFromTile(tile, (uint)-1); + st->town = t; GenerateStationName(st, tile, !(afc->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT); if (IsValidPlayer(_current_player)) {