Skip to content

Commit

Permalink
fix: item dupe with mismatched inventory bank stacking values (Ascens…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsnider authored Jan 22, 2024
1 parent 7ebac4a commit e917f8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Intersect.Server.Core/Entities/BankInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,14 @@ out var slotIndicesToRemoveFrom
break;
}

var slotIndexToRemoveFrom = slotIndicesToRemoveFrom[nextSlotIndexToRemoveFrom++];
var slotIndexToRemoveFrom = slotIndicesToRemoveFrom[nextSlotIndexToRemoveFrom];
var sourceSlot = sourceSlots[slotIndexToRemoveFrom];
if (sourceSlot.Quantity <= maximumStack)
{
nextSlotIndexToRemoveFrom++;
}
slotToFill.Set(sourceSlot);
slotToFill.Quantity = 1;
remainingQuantity -= 1;
continue;
}
Expand Down

0 comments on commit e917f8e

Please sign in to comment.