Changeset 3835


Ignore:
Timestamp:
Feb 19, 2015, 9:53:32 AM (7 years ago)
Author:
guite
Message:

avl_tree: tiny lint, updating balance at the appropriate moment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/base/avl_tree.h

    r3832 r3835  
    398398                if (replacement->m_child[1])
    399399                    replacement->m_child[1]->m_parent_slot = &replacement->m_child[1];
     400
     401                replacement->update_balance();
    400402            }
    401403            else
     
    422424                if (replacement->m_chain[1])
    423425                    replacement->m_chain[1]->m_chain[0] = replacement;
    424 
    425                 replacement->update_balance();
    426426            }
    427427            else
Note: See TracChangeset for help on using the changeset viewer.