Skip to content

Commit e85c286

Browse files
committed
Fix inventory endpoint not returning all items (Closes #1235) (#1253)
1 parent 730722a commit e85c286

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Daybreak.API/Services/InventoryService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ public sealed class InventoryService(
5252
continue;
5353
}
5454

55-
for(var i = 0; i < bag->ItemsCount; i++)
55+
foreach(var item in bag->Items)
5656
{
57-
var item = bag->Items.Buffer[i];
5857
if (item.IsNull)
5958
{
6059
continue;

0 commit comments

Comments
 (0)