mirror of https://github.com/AxioDL/metaforce.git
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:
parent
6ddbd15cfc
commit
1d6354ba26
|
@ -18,7 +18,7 @@ class CDrawStringOptions {
|
|||
std::vector<CTextColor> x4_colors;
|
||||
|
||||
public:
|
||||
CDrawStringOptions() { x4_colors.resize(16); }
|
||||
CDrawStringOptions() : x4_colors(16) {}
|
||||
};
|
||||
|
||||
} // namespace urde
|
||||
|
|
Loading…
Reference in New Issue