fix: Replaces FindItem(s)ByType(s) implementation with BFS strategy (#1454)
This commit is contained in:
parent
cd5fddd8d1
commit
52ca1fe686
8 changed files with 135 additions and 160 deletions
|
|
@ -273,7 +273,7 @@ public partial class SalvageBag : Bag
|
|||
|
||||
var items = FindItemsByType(_clothTypes);
|
||||
|
||||
for (var i = 0; i < items.Length; i++)
|
||||
for (var i = 0; i < items.Count; i++)
|
||||
{
|
||||
from.AddToBackpack(items[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue