Fix warning about potential uninitialized lightfiller reported by gcc

This commit is contained in:
Magnus Norddahl 2017-01-10 15:14:55 +01:00
parent 8fc6660a4a
commit 751bd120ac
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}