mirror of https://github.com/OpenTTD/OpenTTD.git
Fix #9909, 13528bf: Left-over unused parameter breaks overload resolution
This commit is contained in:
parent
675cf7a8ee
commit
aeeee9f18e
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue