Fixed amb1935 - When deleting a topmenu category, child objects were not removed from the name cache.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402485
This commit is contained in:
parent
4951dccded
commit
fe4e39a2dd
@ -330,6 +330,7 @@ void TopMenu::RemoveFromMenu(unsigned int object_id)
|
||||
topmenu_category_t *cat = m_Categories[i];
|
||||
for (size_t j = 0; j < m_Categories[i]->obj_list.size(); j++)
|
||||
{
|
||||
m_ObjLookup.remove(cat->obj_list[j]->name);
|
||||
cat->obj_list[j]->callbacks->OnTopMenuObjectRemoved(this, cat->obj_list[j]->object_id);
|
||||
cat->obj_list[j]->is_free = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user