diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-16 17:54:08 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-07-01 19:04:38 +0200 |
commit | 9a7750f14eccd8afb6e8bb608ec421c09a486d53 (patch) | |
tree | e77f49a9225f414939961fd5b2794147b2aa25f6 /src/news_type.h | |
parent | aa9818db90b910b1b3d62d080f4a670a6a9d14af (diff) | |
download | openttd-9a7750f14eccd8afb6e8bb608ec421c09a486d53.tar.xz |
Codechange: use the constructor for CompanyNewsItem to fill the data instead of a separate function
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/news_type.h b/src/news_type.h index bed8f16e7..8045a58fa 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -158,14 +158,14 @@ struct NewsStringData : NewsAllocatedData { * resulting in wrong names and such. */ struct CompanyNewsInformation : NewsAllocatedData { - char company_name[64]; ///< The name of the company - char president_name[64]; ///< The name of the president - char other_company_name[64]; ///< The name of the company taking over this one + std::string company_name; ///< The name of the company + std::string president_name; ///< The name of the president + std::string other_company_name; ///< The name of the company taking over this one uint32 face; ///< The face of the president byte colour; ///< The colour related to the company - void FillData(const struct Company *c, const struct Company *other = nullptr); + CompanyNewsInformation(const struct Company *c, const struct Company *other = nullptr); }; #endif /* NEWS_TYPE_H */ |