Fixed amb1935 - When deleting a topmenu category, child objects were not removed from the name cache.
--HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402484
This commit is contained in:
parent
b364544776
commit
2ab49e966a
@ -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