2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-09 20:05:52 +00:00

CStateMachine: Initialize data members where applicable

Provides a deterministic initial state.
This commit is contained in:
Lioncash 2020-04-13 16:34:15 -04:00
parent 0d97104cf2
commit 7fcd6f41cf

View File

@ -50,8 +50,8 @@ class CAiState {
friend class CStateMachineState;
CAiStateFunc x0_func;
char xc_name[32] = {};
u32 x2c_numTriggers;
CAiTrigger* x30_firstTrigger;
u32 x2c_numTriggers = 0;
CAiTrigger* x30_firstTrigger = nullptr;
public:
CAiState(CAiStateFunc func, const char* name) {
@ -88,7 +88,7 @@ class CStateMachineState {
float x8_time = 0.f;
float xc_random = 0.f;
float x10_delay = 0.f;
float x14_;
float x14_ = 0.f;
bool x18_24_codeTrigger : 1;
public: