Skip to content

Commit

Permalink
Merge pull request #198 from maximedelboo/master
Browse files Browse the repository at this point in the history
fix: basebankscript withdraw was broken for items with stackcount 1
  • Loading branch information
Torwent authored Sep 16, 2024
2 parents 1355dbf + a0d238b commit c94d751
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 c94d751

Please sign in to comment.