diff --git a/src/DotRecast.Detour.Crowd/DtProximityGrid.cs b/src/DotRecast.Detour.Crowd/DtProximityGrid.cs index e394982..f481497 100644 --- a/src/DotRecast.Detour.Crowd/DtProximityGrid.cs +++ b/src/DotRecast.Detour.Crowd/DtProximityGrid.cs @@ -80,6 +80,7 @@ namespace DotRecast.Detour.Crowd if (!_items.TryGetValue(key, out var ids)) { ids = _listPool.Get(); + ids.Clear(); _items.Add(key, ids); }