From 1d6354ba269a7edbd9de81d84a4e9aa3bb200b28 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Mar 2020 21:35:05 -0400 Subject: [PATCH] CDrawStringOptions: Resize vector within constructor Same behavior, but constructs the vector with the necessary size, rather than constructing and resizing after the fact. --- Runtime/GuiSys/CDrawStringOptions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/GuiSys/CDrawStringOptions.hpp b/Runtime/GuiSys/CDrawStringOptions.hpp index 43523df2f..749aa2882 100644 --- a/Runtime/GuiSys/CDrawStringOptions.hpp +++ b/Runtime/GuiSys/CDrawStringOptions.hpp @@ -18,7 +18,7 @@ class CDrawStringOptions { std::vector x4_colors; public: - CDrawStringOptions() { x4_colors.resize(16); } + CDrawStringOptions() : x4_colors(16) {} }; } // namespace urde