CTeamAiMgr: Initialize x90_timeSinceMelee and x90_timeSinceRanged to 0.0f in constructor

Makes all class members have a deterministic initial state.
This commit is contained in:
Lioncash 2020-03-24 05:19:02 -04:00
parent fc87bd8022
commit 64d0563872
1 changed files with 3 additions and 3 deletions

View File

@ -64,10 +64,10 @@ private:
std::vector<CTeamAiRole> x58_roles;
std::vector<TUniqueId> x68_meleeAttackers;
std::vector<TUniqueId> x78_rangedAttackers;
float x88_timeDirty = 0.f;
float x88_timeDirty = 0.0f;
TUniqueId x8c_teamCaptainId = kInvalidUniqueId;
float x90_timeSinceMelee;
float x94_timeSinceRanged;
float x90_timeSinceMelee = 0.0f;
float x94_timeSinceRanged = 0.0f;
void UpdateTeamCaptain();
bool ShouldUpdateRoles(float dt);