mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
refactor: PVS-Studio warnings fixes
This commit is contained in:
parent
7bc96affbb
commit
245b39be62
22 changed files with 311 additions and 302 deletions
|
|
@ -18,7 +18,7 @@ ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) : conte
|
|||
auto atlas = assets->get<Atlas>("blocks");
|
||||
|
||||
for (uint i = 0; i < indices->blocks.count(); i++) {
|
||||
Block* def = indices->blocks.get(i); //FIXME: Potential null pointer
|
||||
auto def = indices->blocks.getWriteable(i); //FIXME: Potential null pointer
|
||||
for (uint side = 0; side < 6; side++) {
|
||||
const std::string& tex = def->textureFaces[side]; //-V522
|
||||
if (atlas->has(tex)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue