//
// GameLevelManager::deleteSmartTemplate from 0x10009a7f0 to 0x10009a820 (48 bytes)
//
// 1 xrefs:
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1000710e4
//
// 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 __fastcall GameLevelManager::deleteSmartTemplate(GameLevelManager *a1, GJSmartTemplate *a2)
{
GJSmartTemplate *m_smartTemplate; // x8
if ( a2 )
{
m_smartTemplate = a1->m_smartTemplate;
if ( m_smartTemplate )
{
if ( m_smartTemplate->m_nameIndex == a2->m_nameIndex )
a1->m_smartTemplate = nullptr;
}
sub_10024A444(a1->m_smartTemplates, a2, 1);
}
}