fluid: Use new Erase helper
This commit is contained in:
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…
Reference in New Issue