mirror of https://github.com/OpenTTD/OpenTTD
(svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out)
parent
15a7b6094b
commit
1c3b7ba863
|
@ -48,10 +48,13 @@ CompanyManagerFace _company_manager_face; ///< for company manager face storage
|
||||||
|
|
||||||
DEFINE_OLD_POOL_GENERIC(Company, Company)
|
DEFINE_OLD_POOL_GENERIC(Company, Company)
|
||||||
|
|
||||||
Company::Company(uint16 name_1, bool is_ai) : name_1(name_1), location_of_HQ(INVALID_TILE), is_ai(is_ai)
|
Company::Company(uint16 name_1, bool is_ai) :
|
||||||
|
name_1(name_1),
|
||||||
|
location_of_HQ(INVALID_TILE),
|
||||||
|
is_ai(is_ai),
|
||||||
|
is_noai(false)
|
||||||
{
|
{
|
||||||
for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR;
|
for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR;
|
||||||
this->is_noai = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Company::~Company()
|
Company::~Company()
|
||||||
|
|
Loading…
Reference in New Issue