//
// GameLevelManager::deleteSmartTemplate from 0x10053aaf0 to 0x10053ab32 (66 bytes)
//
// 2 xrefs:
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e87e4
// > sub_1004E8820 @ 0x1004e8858
//
// 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; // rax
if ( a2 )
{
m_smartTemplate = a1->m_smartTemplate;
if ( m_smartTemplate )
{
if ( m_smartTemplate->m_nameIndex == a2->m_nameIndex )
a1->m_smartTemplate = nullptr;
}
sub_100720220(a1->m_smartTemplates, a2, 1);
}
}