//
// SequenceTriggerGameObject::deleteTarget from 0x3ecd4c to 0x3ecd80 (52 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0x580fb0
//
// 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 SequenceTriggerGameObject::deleteTarget(SequenceTriggerGameObject *a1, int a2)
{
ChanceObject *m_finish; // r0
ChanceObject *m_start; // r2
if ( a2 >= 0 )
{
m_finish = a1->m_chanceObjects.m_finish;
m_start = a1->m_chanceObjects.m_start;
if ( a2 <= (unsigned int)(m_finish - m_start - 1) && m_start != m_finish )
{
std::vector::erase((int)&a1->m_chanceObjects, (int)&m_start[a2]);
a1->m_sequenceTotalCount = -1;
}
}
}