Codechange: replace magic numbers and C-style arrays with C++-style array for share owners
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "settings_type.h"
|
||||
#include "group.h"
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
/** Statistics about the economy. */
|
||||
struct CompanyEconomyEntry {
|
||||
@@ -74,7 +75,7 @@ struct CompanyProperties {
|
||||
TileIndex location_of_HQ; ///< Northern tile of HQ; #INVALID_TILE when there is none.
|
||||
TileIndex last_build_coordinate; ///< Coordinate of the last build thing by this company.
|
||||
|
||||
Owner share_owners[4]; ///< Owners of the 4 shares of the company. #INVALID_OWNER if nobody has bought them yet.
|
||||
std::array<Owner, MAX_COMPANY_SHARE_OWNERS> share_owners; ///< Owners of the shares of the company. #INVALID_OWNER if nobody has bought them yet.
|
||||
|
||||
Year inaugurated_year; ///< Year of starting the company.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user