bags: return zero without any purchased bank slot

This commit is contained in:
shagu
2019-04-27 17:46:36 +02:00
parent 8fd272d677
commit 3bd28bd3d5
+1 -1
View File
@@ -441,7 +441,7 @@ pfUI:RegisterModule("bags", 20400, function ()
local position = "RIGHT"
if frame == pfUI.bag.left then
min, max = 1, math.min(6, GetNumBankSlots())
min, max = 1, math.min(6, (GetNumBankSlots() or 0))
tpl = "BankItemButtonBagTemplate"
name, append = "pfUIBankBBag", ""
position = "LEFT"