2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-04 19:35:40 +00:00

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

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;
};