mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix: PVS-Studio V522 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
4efa574eec
commit
3621e7ce1b
18 changed files with 81 additions and 81 deletions
|
|
@ -150,8 +150,8 @@ void ChunksStorage::getVoxels(VoxelsVolume* volume, bool backlight) const {
|
|||
light_t light = clights[cidx];
|
||||
if (backlight) {
|
||||
auto block =
|
||||
indices->blocks.get(voxels[vidx].id);
|
||||
if (block->lightPassing) {
|
||||
indices->blocks.get(voxels[vidx].id); //FIXME: Potentional null pointer
|
||||
if (block->lightPassing) { //-V522
|
||||
light = Lightmap::combine(
|
||||
min(15,
|
||||
Lightmap::extract(light, 0) + 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue