From d7244bd0ffbe9dfe4e70a90820e441711c4665d3 Mon Sep 17 00:00:00 2001 From: ikpil Date: Thu, 18 Jan 2024 23:15:41 +0900 Subject: [PATCH] fix: invalid index --- src/DotRecast.Recast/RcRegions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Recast/RcRegions.cs b/src/DotRecast.Recast/RcRegions.cs index d094b01..2b6c2fa 100644 --- a/src/DotRecast.Recast/RcRegions.cs +++ b/src/DotRecast.Recast/RcRegions.cs @@ -296,9 +296,9 @@ namespace DotRecast.Recast while (stack.Count > 0) { RcLevelStackEntry back = stack[^1]; - int ci = back.x; + int cx = back.x; int cy = back.y; - int cx = back.index; + int ci = back.index; stack.RemoveAt(stack.Count - 1);