Use resize instead of erase()

This change is actually useless, but I made it before I realized the real
cause of the gcc warnings and it's fine so I'm just comitting it.

P4:6834548
This commit is contained in:
Fletcher Dunn
2021-10-16 18:32:42 -07:00
parent d033b32120
commit 8d9c3ead2e
@@ -1927,7 +1927,8 @@ template<bool k_bUnreliableOnly> struct SNPSegmentCollector<k_bUnreliableOnly,fa
m_cbRemainingForSegments += t->m_cbHdr;
if ( t->m_nLaneID == 0 )
m_idxLane0 = -1;
m_vecLanes.erase( t );
Assert( t+1 == m_vecLanes.end() );
m_vecLanes.resize( m_vecLanes.size()-1 );
}
}
};