2
0
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:
2020-04-11 01:50:10 -04:00
parent 22880abb7e
commit bb7e94f304
69 changed files with 583 additions and 657 deletions

View File

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