mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +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;
|
||||
|
||||
double lstep;
|
||||
uint8_t *lightfiller;
|
||||
uint8_t *lightfiller = nullptr;
|
||||
int i = 0;
|
||||
|
||||
if (width == 0 || lval == lend)
|
||||
|
@ -2720,7 +2720,7 @@ namespace swrenderer
|
|||
}
|
||||
}
|
||||
}
|
||||
for (; i <= width; i++)
|
||||
for (; i < width; i++)
|
||||
{
|
||||
tiltlighting[i] = lightfiller;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue