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:
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…
x
Reference in New Issue
Block a user