CSaveableState: Initialize vectors in the constructor initializer list

Initializes the vectors in place, rather than constructing them and then
resizing.
This commit is contained in:
Lioncash 2020-03-06 22:47:36 -05:00
parent 4daa8ac374
commit 815a38288a
1 changed files with 1 additions and 4 deletions

View File

@ -35,10 +35,7 @@ protected:
EVerticalJustification x84_vjust = EVerticalJustification::Top;
public:
CSaveableState() {
x54_colors.resize(3, zeus::skBlack);
x64_colorOverrides.resize(16);
}
CSaveableState() : x54_colors(3, zeus::skBlack), x64_colorOverrides(16) {}
bool IsFinishedLoading() const;
};