//
// EditorUI::onDeleteCustomItem from 0x3882b8 to 0x3882e2 (42 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::onDeleteCustomItem(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
if ( a1->m_selectedObjectIndex < 0 )
{
v3 = GameManager::sharedState();
GameManager::removeCustomObject(v3, a1->m_selectedObjectIndex);
a1->m_selectedObjectIndex = 0;
EditorUI::reloadCustomItems(a1);
}
}