diff --git a/src/economy.cpp b/src/economy.cpp --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1087,7 +1087,7 @@ static uint DeliverGoodsToIndustry(const accepted += amount; /* Update the cargo monitor. */ - AddCargoDelivery(cargo_type, company, amount, ST_INDUSTRY, source, st, ind->index); + AddCargoDelivery(cargo_type, company, amount, SourceType::Industry, source, st, ind->index); } return accepted; @@ -1113,7 +1113,7 @@ static Money DeliverGoods(int num_pieces Station *st = Station::Get(dest); /* Give the goods to the industry. */ - uint accepted_ind = DeliverGoodsToIndustry(st, cargo_type, num_pieces, src_type == ST_INDUSTRY ? src : INVALID_INDUSTRY, company->index); + uint accepted_ind = DeliverGoodsToIndustry(st, cargo_type, num_pieces, src_type == SourceType::Industry ? src : INVALID_INDUSTRY, company->index); /* If this cargo type is always accepted, accept all */ uint accepted_total = HasBit(st->always_accepted, cargo_type) ? num_pieces : accepted_ind;