mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
Fix warning about potential uninitialized lightfiller reported by gcc
This commit is contained in:
parent
8fc6660a4a
commit
751bd120ac
1 changed files with 2 additions and 2 deletions
|
@ -2635,7 +2635,7 @@ namespace swrenderer
|
||||||
const uint8_t **tiltlighting = thread->tiltlighting;
|
const uint8_t **tiltlighting = thread->tiltlighting;
|
||||||
|
|
||||||
double lstep;
|
double lstep;
|
||||||
uint8_t *lightfiller;
|
uint8_t *lightfiller = nullptr;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (width == 0 || lval == lend)
|
if (width == 0 || lval == lend)
|
||||||
|
@ -2720,7 +2720,7 @@ namespace swrenderer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (; i <= width; i++)
|
for (; i < width; i++)
|
||||||
{
|
{
|
||||||
tiltlighting[i] = lightfiller;
|
tiltlighting[i] = lightfiller;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue