[c] Fixes and closes #2990

Verified that this change is correct using the latest versions of
spine-c and spine-sfml
This commit is contained in:
Luke Ingram 2025-12-02 22:25:27 -04:00
parent eda6ed40bb
commit a554d4f1b0

View File

@ -554,7 +554,7 @@ static spAnimation *_spSkeletonBinary_readAnimation(spSkeletonBinary *self, cons
spAlphaTimeline_setFrame(timeline, frame, time, a); spAlphaTimeline_setFrame(timeline, frame, time, a);
if (frame == frameLast) break; if (frame == frameLast) break;
time2 = readFloat(input); time2 = readFloat(input);
a2 = readByte(input) / 255; a2 = readByte(input) / 255.0;
switch (readSByte(input)) { switch (readSByte(input)) {
case CURVE_STEPPED: case CURVE_STEPPED:
spCurveTimeline_setStepped(SUPER(timeline), frame); spCurveTimeline_setStepped(SUPER(timeline), frame);