summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-12 21:39:45 +0000
committertruebrain <truebrain@openttd.org>2009-01-12 21:39:45 +0000
commit8823f796eacf03fa995c2e669f5af0ae286649fe (patch)
treebdcd46d31bb609c71f51638ece030da11bcd3cd7
parentf3b9f94800ab7f7245fa886a0c55c2c14ba2acfa (diff)
downloadopenttd-8823f796eacf03fa995c2e669f5af0ae286649fe.tar.xz
(svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out)
-rw-r--r--src/company_cmd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 0cab1e0c4..4a27b512d 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -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()