From f416a814a159a43f194e2b7c4f255a34be909b10 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 24 Mar 2020 05:13:58 -0400 Subject: [PATCH] CFluidPlane: Always initialize mul to 0.0f in CalculateRippleIntensity() Avoids a -Wmaybe-uninitialized warning. --- Runtime/World/CFluidPlane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CFluidPlane.cpp b/Runtime/World/CFluidPlane.cpp index f1ccb7ac6..4df92a373 100644 --- a/Runtime/World/CFluidPlane.cpp +++ b/Runtime/World/CFluidPlane.cpp @@ -35,7 +35,7 @@ float CFluidPlane::ProjectRippleVelocity(float baseI, float velDot) const { } float CFluidPlane::CalculateRippleIntensity(float baseI) const { - float mul; + float mul = 0.0f; switch (x44_fluidType) { case EFluidType::NormalWater: mul = g_tweakGame->GetRippleIntensityNormal();