From d4e0a8108ba410ca3f994e80c886bc3613bca831 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Tue, 4 Oct 2022 05:43:22 +0300 Subject: [PATCH] game(client): fix particles problems on 64bit systems --- game/client/particlemgr.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/game/client/particlemgr.cpp b/game/client/particlemgr.cpp index 8d14e7b6..246a8a78 100644 --- a/game/client/particlemgr.cpp +++ b/game/client/particlemgr.cpp @@ -1111,7 +1111,7 @@ bool CParticleMgr::Init(unsigned long count, IMaterialSystem *pMaterials) void CParticleMgr::Term() { // Free all the effects. - int iNext; + intp iNext; for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext ) { iNext = m_Effects.Next( i ); @@ -1388,12 +1388,11 @@ void CParticleMgr::RemoveAllNewEffects() void CParticleMgr::RemoveAllEffects() { - int iNext; + intp iNext; for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext ) { iNext = m_Effects.Next( i ); RemoveEffect( m_Effects[i] ); - } RemoveAllNewEffects(); @@ -1970,7 +1969,7 @@ void CParticleMgr::UpdateAllEffects( float flTimeDelta ) m_bUpdatingEffects = false; // Remove any effects that were flagged to be removed. - int iNext; + intp iNext; for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i=iNext ) { iNext = m_Effects.Next( i );