diff --git a/src/economy.cpp b/src/economy.cpp index ca2e5591d1..bc3fa29894 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -2023,10 +2023,10 @@ extern int GetAmountOwnedBy(const Company *c, Owner owner); /** * Acquire shares in an opposing company. * @param flags type of operation - * @param p1 company to buy the shares from + * @param target_company company to buy the shares from * @return the cost of this operation or an error */ -CommandCost CmdBuyShareInCompany(DoCommandFlag flags, TileIndex tile, CompanyID target_company) +CommandCost CmdBuyShareInCompany(DoCommandFlag flags, CompanyID target_company) { CommandCost cost(EXPENSES_OTHER); Company *c = Company::GetIfValid(target_company); diff --git a/src/economy_cmd.h b/src/economy_cmd.h index e5cc282c99..4a17e7a814 100644 --- a/src/economy_cmd.h +++ b/src/economy_cmd.h @@ -13,7 +13,7 @@ #include "command_type.h" #include "company_type.h" -CommandCost CmdBuyShareInCompany(DoCommandFlag flags, TileIndex tile, CompanyID target_company); +CommandCost CmdBuyShareInCompany(DoCommandFlag flags, CompanyID target_company); CommandCost CmdSellShareInCompany(DoCommandFlag flags, CompanyID target_company); CommandCost CmdBuyCompany(DoCommandFlag flags, CompanyID target_company);