From e628cbf1be21b566d9e693f37d0a80418ace2678 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 12 Mar 2020 09:57:40 -0400 Subject: [PATCH] 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. --- Runtime/World/CPlayerEnergyDrain.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CPlayerEnergyDrain.hpp b/Runtime/World/CPlayerEnergyDrain.hpp index 8b4651786..3b2bf9ba7 100644 --- a/Runtime/World/CPlayerEnergyDrain.hpp +++ b/Runtime/World/CPlayerEnergyDrain.hpp @@ -9,7 +9,7 @@ namespace urde { class CStateManager; class CPlayerEnergyDrain { std::vector x0_sources; - float x10_energyDrainTime; + float x10_energyDrainTime = 0.0f; public: CPlayerEnergyDrain(u32);