mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user