fluid: Use new Erase helper

pull/70/head
Joshua Ashton 5 months ago committed by Joshie
parent bdd5b2ca9b
commit 52ff0b3629

@ -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 );
}
//-------------------------------------------------------------------------------------------------

Loading…
Cancel
Save