mirror of https://github.com/AxioDL/metaforce.git
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:
parent
4daa8ac374
commit
815a38288a
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue