mirror of https://github.com/AxioDL/metaforce.git
CPlayerEnergyDrain: Initialize x10_energyDrainTime on construction
GM8E v0 initializes this to zero when constructing the class. This also makes the entire class have a consistent initial state.
This commit is contained in:
parent
d93df18a37
commit
e628cbf1be
|
@ -9,7 +9,7 @@ namespace urde {
|
||||||
class CStateManager;
|
class CStateManager;
|
||||||
class CPlayerEnergyDrain {
|
class CPlayerEnergyDrain {
|
||||||
std::vector<CEnergyDrainSource> x0_sources;
|
std::vector<CEnergyDrainSource> x0_sources;
|
||||||
float x10_energyDrainTime;
|
float x10_energyDrainTime = 0.0f;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CPlayerEnergyDrain(u32);
|
CPlayerEnergyDrain(u32);
|
||||||
|
|
Loading…
Reference in New Issue