Fix some STL asserts in EE_SELECTION_TOOL

This commit is contained in:
Jon Evans 2021-03-21 22:01:45 -04:00
parent e0fdfbe1d5
commit c5c348538e
1 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
{
EE_SELECTION saved_selection = m_selection;
for( auto item : m_selection )
for( const auto& item : m_selection )
RemoveItemFromSel( item, true );
SelectPoint( evt->Position(), EE_COLLECTOR::AllItems, nullptr,
@ -498,7 +498,7 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
{
m_selection.SetIsHover( false );
for( auto item : saved_selection )
for( const auto& item : saved_selection )
AddItemToSel( item, true);
}
else