summaryrefslogtreecommitdiff
path: root/src/company_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/company_base.h')
-rw-r--r--src/company_base.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/company_base.h b/src/company_base.h
index b8ea09f95..1bc4b7f83 100644
--- a/src/company_base.h
+++ b/src/company_base.h
@@ -96,7 +96,13 @@ struct CompanyProperties {
CompanyEconomyEntry old_economy[MAX_HISTORY_QUARTERS]; ///< Economic data of the company of the last #MAX_HISTORY_QUARTERS quarters.
byte num_valid_stat_ent; ///< Number of valid statistical entries in #old_economy.
- CompanyProperties() : name(NULL), president_name(NULL) {}
+ // TODO: Change some of these member variables to use relevant INVALID_xxx constants
+ CompanyProperties()
+ : name_2(0), name_1(0), name(NULL), president_name_1(0), president_name_2(0), president_name(NULL),
+ face(0), money(0), money_fraction(0), current_loan(0), colour(0), block_preview(0),
+ location_of_HQ(0), last_build_coordinate(0), share_owners(), inaugurated_year(0),
+ months_of_bankruptcy(0), bankrupt_asked(0), bankrupt_timeout(0), bankrupt_value(0),
+ terraform_limit(0), clear_limit(0), tree_limit(0), is_ai(false) {}
~CompanyProperties()
{