mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-03 03:21:20 +00:00
CFluidPlane: Always initialize mul to 0.0f in CalculateRippleIntensity()
Avoids a -Wmaybe-uninitialized warning.
This commit is contained in:
parent
fc87bd8022
commit
f416a814a1
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user