fix: PVS-Studio V522 mark false

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
Vyacheslav Ivanov 2024-08-03 21:49:18 +03:00 • committed by Pugemon
parent 4efa574eec
commit 3621e7ce1b
No known key found for this signature in database
GPG key ID: 472FA343B3CC3287
18 changed files with 81 additions and 81 deletions

View file

@ -154,9 +154,9 @@ std::unique_ptr<Atlas> BlocksPreview::build(
fbo.bind();
for (size_t i = 0; i < count; i++) {
auto def = indices->blocks.get(i);
auto def = indices->blocks.get(i); //FIXME: Potentional null pointer
atlas->getTexture()->bind();
builder.add(def->name, draw(cache, shader, &fbo, &batch, def, iconSize));
builder.add(def->name, draw(cache, shader, &fbo, &batch, def, iconSize)); //-V522
}
fbo.unbind();