[c] fix heap corruption while using RGB2Timeline entities (#2857)

This commit is contained in:
rbolgov 2025-07-04 12:11:26 +03:00 committed by GitHub
parent 0229260ecc
commit cf041d5c38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1491,7 +1491,7 @@ void spRGBA2Timeline_setFrame(spRGBA2Timeline *self, int frame, float time, floa
/**/
static const int RGB2_ENTRIES = 7, COLOR2_R2 = 5, COLOR2_G2 = 6, COLOR2_B2 = 7;
static const int RGB2_ENTRIES = 7, COLOR2_R2 = 4, COLOR2_G2 = 5, COLOR2_B2 = 6;
void _spRGB2Timeline_apply(spTimeline *timeline, spSkeleton *skeleton, float lastTime, float time, spEvent **firedEvents,
int *eventsCount, float alpha, spMixBlend blend, spMixDirection direction) {