@@ -105,13 +105,12 @@ public:
LandInfoWindow(TileIndex tile) : Window(&_land_info_desc) {
Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority);
/* Because build_date is not set yet in every TileDesc, we make sure it is empty */
TileDesc td;
AcceptedCargo ac;
td.build_date = INVALID_DATE;
/* Most tiles have only one owner, but
* - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
* - roads can have up to four owners (railroad, road, tram, 3rd-roadtype "highway").
@@ -127,13 +126,15 @@ public:
td.station_class = STR_NULL;
td.station_name = STR_NULL;
td.grf = NULL;
GetAcceptedCargo(tile, ac);
memset(ac, 0, sizeof(AcceptedCargo));
AddAcceptedCargo(tile, ac);
GetTileDesc(tile, &td);
uint line_nr = 0;
/* Tiletype */
SetDParam(0, td.dparam[0]);