Merge pull request #272 from lioncash/uninit

CFluidPlane: Always initialize mul to 0.0f in CalculateRippleIntensity()
This commit is contained in:
Phillip Stephens 2020-03-24 17:45:15 -07:00 committed by GitHub
commit 9aece39445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ float CFluidPlane::ProjectRippleVelocity(float baseI, float velDot) const {
} }
float CFluidPlane::CalculateRippleIntensity(float baseI) const { float CFluidPlane::CalculateRippleIntensity(float baseI) const {
float mul; float mul = 0.0f;
switch (x44_fluidType) { switch (x44_fluidType) {
case EFluidType::NormalWater: case EFluidType::NormalWater:
mul = g_tweakGame->GetRippleIntensityNormal(); mul = g_tweakGame->GetRippleIntensityNormal();