mirror of https://github.com/AxioDL/metaforce.git
CStateMachine: Initialize data members where applicable
Provides a deterministic initial state.
This commit is contained in:
parent
0d97104cf2
commit
7fcd6f41cf
|
@ -50,8 +50,8 @@ class CAiState {
|
||||||
friend class CStateMachineState;
|
friend class CStateMachineState;
|
||||||
CAiStateFunc x0_func;
|
CAiStateFunc x0_func;
|
||||||
char xc_name[32] = {};
|
char xc_name[32] = {};
|
||||||
u32 x2c_numTriggers;
|
u32 x2c_numTriggers = 0;
|
||||||
CAiTrigger* x30_firstTrigger;
|
CAiTrigger* x30_firstTrigger = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CAiState(CAiStateFunc func, const char* name) {
|
CAiState(CAiStateFunc func, const char* name) {
|
||||||
|
@ -88,7 +88,7 @@ class CStateMachineState {
|
||||||
float x8_time = 0.f;
|
float x8_time = 0.f;
|
||||||
float xc_random = 0.f;
|
float xc_random = 0.f;
|
||||||
float x10_delay = 0.f;
|
float x10_delay = 0.f;
|
||||||
float x14_;
|
float x14_ = 0.f;
|
||||||
bool x18_24_codeTrigger : 1;
|
bool x18_24_codeTrigger : 1;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue