Skip to content

Commit a72779a

Browse files
authored
Merge pull request #342 from celisej567/particlemgr-UB-fix
[FIX] Undefined behaviour on comparison of NaN and float at particlemgr.cpp
2 parents 7b15e43 + 93bec9d commit a72779a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mp/src/game/client/particlemgr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding()
146146
m_LastMin = m_Min;
147147
m_LastMax = m_Max;
148148

149+
m_flParticleCullRadius = 0.0f;
150+
149151
SetParticleCullRadius( 0.0f );
150152
m_nActiveParticles = 0;
151153

sp/src/game/client/particlemgr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding()
146146
m_LastMin = m_Min;
147147
m_LastMax = m_Max;
148148

149+
m_flParticleCullRadius = 0.0f;
150+
149151
SetParticleCullRadius( 0.0f );
150152
m_nActiveParticles = 0;
151153

0 commit comments

Comments
 (0)