Skip to content

Commit

Permalink
fixed an error when loading the bank
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Mar 19, 2024
1 parent 56b8cd0 commit 3e5f4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function items:ProcessContainer()
repeat
loaded = self._container:ContinueOnLoad(function() self:BackpackLoadFunction() end)
count = count + 1
until loaded or count > 2
until loaded or count > 2 or self._container == nil
end

function items:BankLoadFunction()
Expand Down Expand Up @@ -573,7 +573,7 @@ function items:ProcessBankContainer()
local loaded = false
repeat
loaded = self._bankContainer:ContinueOnLoad(function() self:BankLoadFunction() end)
until loaded
until loaded or self._bankContainer == nil
end

--TODO(lobato): Completely eliminate the use of ItemMixin.
Expand Down

0 comments on commit 3e5f4a0

Please sign in to comment.