mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-06 07:45:51 +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:
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…
x
Reference in New Issue
Block a user