mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-01-21 08:30:56 +00:00
Fix some ubsan warnings
This commit is contained in:
parent
1ae47bf5a1
commit
6de9575189
2 changed files with 2 additions and 2 deletions
|
@ -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 ) {
|
||||
|
|
|
@ -207,7 +207,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 ) {
|
||||
|
|
Loading…
Reference in a new issue