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
1 changed files with 1 additions and 1 deletions

View File

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