OK, this looks fine. I’ve just noticed that the stack trace refers to the pathfinding getting neighbours. It is possible that it’s not bounds checking when it does that. Can you share the GetNeighbourList function from pathfinding, too? See this post to format the code: