2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-05 23:15:52 +00:00

CDrawStringOptions: Resize vector within constructor

Same behavior, but constructs the vector with the necessary size, rather
than constructing and resizing after the fact.
This commit is contained in:
Lioncash 2020-03-17 21:35:05 -04:00
parent 6ddbd15cfc
commit 1d6354ba26

View File

@ -18,7 +18,7 @@ class CDrawStringOptions {
std::vector<CTextColor> x4_colors; std::vector<CTextColor> x4_colors;
public: public:
CDrawStringOptions() { x4_colors.resize(16); } CDrawStringOptions() : x4_colors(16) {}
}; };
} // namespace urde } // namespace urde