Changeset - r22934:0a8259209a75
[Not reviewed]
master
0 1 0
Charles Pigott - 6 years ago 2018-05-20 16:10:45
charlespigott@googlemail.com
Codechange: Add initialisation values for all CompanyProperty attributes
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/company_base.h
Show inline comments
 
@@ -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()
 
	{
0 comments (0 inline, 0 general)