fix: Fixes container enumeration not recycling pooled arrays (#2341)
### Summary Updates all calls to container.EnumerateItems() to properly dispose of the underlying PooledRefQueue so that we are properly recycling pooled arrays.
This commit is contained in:
parent
1780edf0be
commit
c494fb4cc3
15 changed files with 388 additions and 365 deletions
|
|
@ -163,7 +163,8 @@ namespace Server.Engines.MLQuests.Objectives
|
|||
|
||||
var left = Objective.DesiredAmount;
|
||||
|
||||
foreach (var item in pack.EnumerateItemsByType<Item>(false, ClaimTypePredicate))
|
||||
using var queue = pack.EnumerateItemsByType<Item>(false, ClaimTypePredicate);
|
||||
foreach (var item in queue)
|
||||
{
|
||||
if (item.QuestItem && Objective.CheckItem(item))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue