Просмотр исходного кода

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

rbolgov 2 месяцев назад
Родитель
Сommit
cf041d5c38
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      spine-c/spine-c/src/spine/Animation.c

+ 1 - 1
spine-c/spine-c/src/spine/Animation.c

@@ -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) {