From fb5eedb35f66f40637d780cafdc423d675b88543 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Wed, 20 Mar 2024 18:32:26 +0100 Subject: [PATCH] Initialize variabls ubsan complained about I did this change ages ago in game/, forgot to do it in d3xp/ as well --- neo/d3xp/SmokeParticles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/d3xp/SmokeParticles.cpp b/neo/d3xp/SmokeParticles.cpp index 710baecf..4c633579 100644 --- a/neo/d3xp/SmokeParticles.cpp +++ b/neo/d3xp/SmokeParticles.cpp @@ -222,7 +222,7 @@ bool idSmokeParticles::EmitSmoke( const idDeclParticle *smoke, const int systemS int finalParticleTime = stage->cycleMsec * stage->spawnBunching; int deltaMsec = gameLocal.time - systemStartTime; - int nowCount, prevCount; + int nowCount=0, prevCount=0; if ( finalParticleTime == 0 ) { // if spawnBunching is 0, they will all come out at once if ( gameLocal.time == systemStartTime ) {