CBodyState: Always initialize x3c8_primeTime

Provides a deterministic consistent state upon construction
This commit is contained in:
Lioncash 2020-04-07 12:55:38 -04:00
parent 45dca4a25b
commit ce710a94f6
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class CBSBiPedLocomotion : public CBSLocomotion {
protected: protected:
rstl::reserved_vector<rstl::reserved_vector<std::pair<s32, float>, 8>, 14> x8_anims; rstl::reserved_vector<rstl::reserved_vector<std::pair<s32, float>, 8>, 14> x8_anims;
pas::ELocomotionAnim x3c4_anim = pas::ELocomotionAnim::Invalid; pas::ELocomotionAnim x3c4_anim = pas::ELocomotionAnim::Invalid;
float x3c8_primeTime; float x3c8_primeTime = 0.0f;
float UpdateRun(float vel, CBodyController& bc, pas::ELocomotionAnim anim); float UpdateRun(float vel, CBodyController& bc, pas::ELocomotionAnim anim);
float UpdateWalk(float vel, CBodyController& bc, pas::ELocomotionAnim anim); float UpdateWalk(float vel, CBodyController& bc, pas::ELocomotionAnim anim);
float UpdateStrafe(float vel, CBodyController& bc, pas::ELocomotionAnim anim); float UpdateStrafe(float vel, CBodyController& bc, pas::ELocomotionAnim anim);