Skip to content

Commit

Permalink
fix: basebankscript can withdraw if quantity is one and item has only…
Browse files Browse the repository at this point in the history
… one in bank
  • Loading branch information
maximedelboo committed Sep 16, 2024
1 parent 1355dbf commit a0d238b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osr/basescript.simba
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ begin

if Bank.FindItem(item, b) then
begin
if Bank.CountItemStack(item.Item) < item.Quantity then
if Max(1,Bank.CountItemStack(item.Item)) < item.Quantity then
begin
Self.BankEmpty := Bank.IsOpen();
if Self.BankEmpty then
Expand Down

0 comments on commit a0d238b

Please sign in to comment.