浏览代码

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

rbolgov 2 月之前
父节点
当前提交
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) {