diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-05-20 17:10:45 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-06-27 22:54:46 +0200 |
commit | e1b9187e9b39ff2ce1982a8fbcb4f2a018662ce7 (patch) | |
tree | b8936421c2989e072e608a591642062ded3cf9a1 /src | |
parent | dbfc417e65804c09cecf6e549de74a18639f6f7b (diff) | |
download | openttd-e1b9187e9b39ff2ce1982a8fbcb4f2a018662ce7.tar.xz |
Codechange: Add initialisation values for all CompanyProperty attributes
Diffstat (limited to 'src')
-rw-r--r-- | src/company_base.h | 8 |
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() { |