mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 12:11:07 +00:00
Fix some ubsan warnings
This commit is contained in:
parent
c83c4192ea
commit
e5c23adf73
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