bugfix - JumpLinkBuilder sample copy

This commit is contained in:
ikpil 2023-03-26 14:13:09 +09:00
parent 6ac57d0b31
commit 44e6ea8368
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ namespace DotRecast.Detour.Extras.Jumplink
{ {
JumpLink link = new JumpLink(); JumpLink link = new JumpLink();
links.Add(link); links.Add(link);
link.startSamples = ArrayUtils.CopyOf(es.start.gsamples, js.startSample, js.samples - js.startSample); link.startSamples = ArrayUtils.CopyOf(es.start.gsamples, js.startSample, js.samples);
link.endSamples = ArrayUtils.CopyOf(end.gsamples, js.startSample, js.samples - js.startSample); link.endSamples = ArrayUtils.CopyOf(end.gsamples, js.startSample, js.samples);
link.start = es.start; link.start = es.start;
link.end = end; link.end = end;
link.trajectory = es.trajectory; link.trajectory = es.trajectory;