From 44e6ea83684ccad5e884d2562ba02800b895bead Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 26 Mar 2023 14:13:09 +0900 Subject: [PATCH] bugfix - JumpLinkBuilder sample copy --- src/DotRecast.Detour.Extras/Jumplink/JumpLinkBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Detour.Extras/Jumplink/JumpLinkBuilder.cs b/src/DotRecast.Detour.Extras/Jumplink/JumpLinkBuilder.cs index a68c74f..8e62eb9 100644 --- a/src/DotRecast.Detour.Extras/Jumplink/JumpLinkBuilder.cs +++ b/src/DotRecast.Detour.Extras/Jumplink/JumpLinkBuilder.cs @@ -64,8 +64,8 @@ namespace DotRecast.Detour.Extras.Jumplink { JumpLink link = new JumpLink(); links.Add(link); - link.startSamples = ArrayUtils.CopyOf(es.start.gsamples, js.startSample, js.samples - js.startSample); - link.endSamples = ArrayUtils.CopyOf(end.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); link.start = es.start; link.end = end; link.trajectory = es.trajectory;