mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
Runtime/World: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -89,15 +89,10 @@ class CStateMachineState {
|
||||
float xc_random = 0.f;
|
||||
float x10_delay = 0.f;
|
||||
float x14_;
|
||||
union {
|
||||
struct {
|
||||
bool x18_24_codeTrigger : 1;
|
||||
};
|
||||
u32 dummy = 0;
|
||||
};
|
||||
bool x18_24_codeTrigger : 1;
|
||||
|
||||
public:
|
||||
CStateMachineState() = default;
|
||||
CStateMachineState() : x18_24_codeTrigger(false) {}
|
||||
|
||||
CAiState* GetActorState() const { return x4_state; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user