//
// GJEffectManager::updateColorAction from 0x49a1e4 to 0x49a20e (42 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::runColorEffect @ 0x367e66
// > LevelEditorLayer::stopTriggersInGroup @ 0x36db22
//
// 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 GJEffectManager::updateColorAction(GJEffectManager *a1, ColorAction *a2)
{
ColorActionSprite *m_colorSprite; // r3
GLubyte b; // r2
if ( !a2->m_copyID )
{
m_colorSprite = a2->m_colorSprite;
b = a2->m_color.b;
*(_WORD *)&m_colorSprite->m_color.r = *(_WORD *)&a2->m_color.r;
m_colorSprite->m_color.b = b;
m_colorSprite->m_opacity = a2->m_currentOpacity * 255.0;
}
}