summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
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
commit1c3b7ba863380037bab98ade2ff3a59de8093204 (patch)
treebdcd46d31bb609c71f51638ece030da11bcd3cd7 /src/company_cmd.cpp
parent15a7b6094b0dd3e9539fc36c42ac49e38ef50c6a (diff)
downloadopenttd-1c3b7ba863380037bab98ade2ff3a59de8093204.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)
Diffstat (limited to 'src/company_cmd.cpp')
-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()