Merge pull request #342 from celisej567/particlemgr-UB-fix

[FIX] Undefined behaviour on comparison of NaN and float at particlemgr.cpp
This commit is contained in:
Blixibon 2025-01-08 09:26:28 -06:00 committed by GitHub
commit a72779a0e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding()
m_LastMin = m_Min;
m_LastMax = m_Max;
m_flParticleCullRadius = 0.0f;
SetParticleCullRadius( 0.0f );
m_nActiveParticles = 0;

View File

@ -146,6 +146,8 @@ CParticleEffectBinding::CParticleEffectBinding()
m_LastMin = m_Min;
m_LastMax = m_Max;
m_flParticleCullRadius = 0.0f;
SetParticleCullRadius( 0.0f );
m_nActiveParticles = 0;