//
// GameObject::resetSecondaryColorMode from 0x1005ca220 to 0x1005ca253 (51 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 __fastcall GameObject::resetSecondaryColorMode(GameObject *a1)
{
GJSpriteColor *m_detailColor; // rax
int m_defaultColorID; // edx
int v3; // ecx
m_detailColor = a1->m_detailColor;
if ( m_detailColor )
{
m_defaultColorID = 0;
if ( m_detailColor->m_defaultColorID > 0 )
m_defaultColorID = m_detailColor->m_defaultColorID;
v3 = 1101;
if ( m_defaultColorID < 1101 )
v3 = m_defaultColorID;
m_detailColor->m_defaultColorID = v3;
m_detailColor->m_colorID = 0;
}
}