buggy remove operation, accidentally removing wrong entries fixed

This commit is contained in:
Uwe Rathmann 2019-02-22 16:01:21 +01:00
parent 7f4102ff7d
commit 72a7e7f8e7

View File

@ -156,7 +156,7 @@ namespace
void unregisterTable( QskHintAnimatorTable* table )
{
auto it = std::lower_bound( m_tables.begin(), m_tables.end(), table );
if ( it != m_tables.end() )
if ( it != m_tables.end() && *it == table )
m_tables.erase( it );
}