CPlayerState: Default CPowerUp constructor

Same behavior but allows the constructor to be considered trivial.

While we're at it, we can make the constructors constexpr, considering
the data structure only holds two primitives.
This commit is contained in:
Lioncash 2020-03-21 00:33:53 -04:00
parent 36ac0a8d78
commit ba6f55a928
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ private:
struct CPowerUp { struct CPowerUp {
u32 x0_amount = 0; u32 x0_amount = 0;
u32 x4_capacity = 0; u32 x4_capacity = 0;
CPowerUp() {} constexpr CPowerUp() = default;
CPowerUp(u32 amount, u32 capacity) : x0_amount(amount), x4_capacity(capacity) {} constexpr CPowerUp(u32 amount, u32 capacity) : x0_amount(amount), x4_capacity(capacity) {}
}; };
union { union {
struct { struct {