Fix various code issues found using PVS-Studio

This commit is contained in:
Wojtek Figat
2024-08-22 20:24:52 +02:00
parent 3ecb7c1d81
commit 23f60da40d
11 changed files with 49 additions and 7 deletions

View File

@@ -289,9 +289,9 @@ void DrawEmitterCPU(RenderContext& renderContext, ParticleBuffer* buffer, DrawCa
// Check if need to setup ribbon modules
int32 ribbonModuleIndex = 0;
int32 ribbonModulesDrawIndicesPos = 0;
int32 ribbonModulesDrawIndicesStart[PARTICLE_EMITTER_MAX_RIBBONS];
int32 ribbonModulesDrawIndicesCount[PARTICLE_EMITTER_MAX_RIBBONS];
int32 ribbonModulesSegmentCount[PARTICLE_EMITTER_MAX_RIBBONS];
int32 ribbonModulesDrawIndicesStart[PARTICLE_EMITTER_MAX_RIBBONS] = {};
int32 ribbonModulesDrawIndicesCount[PARTICLE_EMITTER_MAX_RIBBONS] = {};
int32 ribbonModulesSegmentCount[PARTICLE_EMITTER_MAX_RIBBONS] = {};
if (emitter->Graph.RibbonRenderingModules.HasItems())
{
// Prepare ribbon data