bags: hardcode a limit of 6 bankslots

Some servers have a hardcoded value of max-bankslot that exceed the maxiumum of available slots.
Having a server return more purchased slots than available, leads to creation of non-existing
bank slot frames that obviously return in errors.
This commit is contained in:
shagu
2019-04-27 15:34:26 +02:00
parent b9fc2ef876
commit 8fd272d677
+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, GetNumBankSlots()
min, max = 1, math.min(6, GetNumBankSlots())
tpl = "BankItemButtonBagTemplate"
name, append = "pfUIBankBBag", ""
position = "LEFT"