[csharp] Fixed bezier json curve out of bounds array access. Closes #1921.

This commit is contained in:
Harald Csaszar 2021-07-07 17:57:43 +02:00
parent 6d9e3e7e19
commit 8a47f548a3

View File

@ -1110,7 +1110,7 @@ namespace Spine {
string curveString = curve as string;
if (curveString != null) {
if (curveString == "stepped") timeline.SetStepped(frame);
return bezier + 1;
return bezier;
}
var curveValues = (List<object>)curve;
int i = value << 2;