Noise: fix uninitialized variable warning.

Mistake in 74188e6502
This commit is contained in:
Ankit Meel 2020-11-07 18:34:57 +05:30
parent ae342ed451
commit 6e6b5e147c
1 changed files with 2 additions and 1 deletions

View File

@ -1634,7 +1634,8 @@ float BLI_noise_mg_ridged_multi_fractal(float x,
}
}
float result, signal = powf(offset - fabsf(noisefunc(x, y, z)), 2);
float signal = powf(offset - fabsf(noisefunc(x, y, z)), 2);
float result = signal;
for (int i = 1; i < (int)octaves; i++) {
float pwHL = powf(lacunarity, -H);
float pwr = pwHL; /* starts with i=1 instead of 0 */