@@ -75,13 +75,13 @@ struct SubsidyListWindow : Window {
}
void HandleClick(const Subsidy *s)
{
TownEffect te = GetCargo(s->cargo_type)->town_effect;
TownEffect te = CargoSpec::Get(s->cargo_type)->town_effect;
TileIndex xy;
/* determine from coordinate for subsidy and try to scroll to it */
uint offs = s->from;
if (s->age >= 12) {
xy = Station::Get(offs)->xy;