fluid: Use new Erase helper

This commit is contained in:
Joshua Ashton 2022-09-02 08:54:22 +01:00 committed by Joshie
parent bdd5b2ca9b
commit 52ff0b3629
1 changed files with 1 additions and 8 deletions

View File

@ -103,14 +103,7 @@ void JoltPhysicsFluidController::OnJoltPhysicsObjectDestroyed( JoltPhysicsObject
if ( pObject == m_pFluidObject )
m_pFluidObject = nullptr;
for ( auto it = m_ObjectsInShape.begin(); it != m_ObjectsInShape.end(); it++ )
{
if ( *it == pObject )
{
m_ObjectsInShape.erase( it );
break;
}
}
Erase( m_ObjectsInShape, pObject );
}
//-------------------------------------------------------------------------------------------------