From d2082c658644ab7a97faf52eb83604249e0ccabc Mon Sep 17 00:00:00 2001 From: wrenge Date: Wed, 13 Nov 2024 14:20:38 +0300 Subject: [PATCH] Added clear --- src/DotRecast.Detour.Crowd/DtProximityGrid.cs | 1 + 1 file changed, 1 insertion(+) 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); }