Fix #9909, 13528bf: Left-over unused parameter breaks overload resolution

This commit is contained in:
glx22 2022-06-01 18:22:19 +02:00 committed by Loïc Guilloux
parent 675cf7a8ee
commit aeeee9f18e
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);