(svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out)

This commit is contained in:
truebrain 2009-01-12 21:39:45 +00:00
parent 15a7b6094b
commit 1c3b7ba863
1 changed files with 5 additions and 2 deletions

View File

@ -48,10 +48,13 @@ CompanyManagerFace _company_manager_face; ///< for company manager face storage
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;
this->is_noai = false;
}
Company::~Company()