//
// GameObject::resetColorGroups from 0x646e10 to 0x646e40 (48 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::calculateColorGroups @ 0x881588
// > ??> @ 0x657f0
//
// 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 GameObject::resetColorGroups(GameObject *a1)
{
std::array *m_colorGroups; // x2
int v2; // w1
if ( a1->m_colorGroupCount > 0 )
{
m_colorGroups = a1->m_colorGroups;
v2 = 0;
do
{
m_colorGroups->__elems_[0] = 0;
m_colorGroups = (std::array *)((char *)m_colorGroups + 2);
++v2;
}
while ( a1->m_colorGroupCount > v2 );
}
a1->m_colorGroupCount = 0;
}