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:
Lioncash 2020-03-12 09:57:40 -04:00
parent d93df18a37
commit e628cbf1be
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace urde {
class CStateManager;
class CPlayerEnergyDrain {
std::vector<CEnergyDrainSource> x0_sources;
float x10_energyDrainTime;
float x10_energyDrainTime = 0.0f;
public:
CPlayerEnergyDrain(u32);