fix: invalid index

This commit is contained in:
ikpil 2024-01-18 23:15:41 +09:00 committed by Ikpil
parent e0e31c19b9
commit d7244bd0ff
1 changed files with 2 additions and 2 deletions

View File

@ -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);