summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()