Bagnon

Bagnon

124M Downloads

Live pre patch open guild bank error - Fix posted in comments

ceylina opened this issue ยท 2 comments

commented

Version 7.0.0

Just trying to open the guild bank

1x Bagnon_GuildBank\components\tab.lua:62: attempt to call method 'SetToFileData' (a nil value)
Bagnon_GuildBank\components\tab.lua:62: in function Update' Bagnon_GuildBank\components\tab.lua:45: in functionRegisterEvents'
Bagnon\common\components\bag.lua:72: in function New' Bagnon_GuildBank\components\tab.lua:14: in functionNew'
Bagnon\common\components\bagFrame.lua:17: in function New' Bagnon\components\frame.lua:407: in functionCreateBagFrame'
Bagnon\components\frame.lua:418: in function PlaceBagFrame' Bagnon\components\frame.lua:248: in functionLayout'
Bagnon\components\frame.lua:108: in function Update' Bagnon\components\frame.lua:78: in function <Bagnon\components\frame.lua:75> [C]: in functionShow'
Bagnon\components\frame.lua:59: in function ShowFrame' Bagnon\main.lua:94: in functionShowFrame'
Bagnon_GuildBank\main.lua:14: in function OnOpen' Bagnon\main.lua:38: in functionGuildBankFrame_LoadUI'
FrameXML\UIParent.lua:1495: in function <FrameXML\UIParent.lua:891>

Locals:
self = BagnonGuildTab1 {
0 =
Count = {
}
frame = BagnonFrameguild {
}
Icon = BagnonGuildTab1IconTexture {
}
FilterIcon = {
}
}
name = "Gear"
icon = 878246
viewable = true
color = 1
iconID = 878246
(_temporary) = nil
(_temporary) = BagnonGuildTab1IconTexture {
0 =
}
(_temporary) = 878246
(_temporary) = "attempt to call method 'SetToFileData' (a nil value)"

commented

Thank you, will release a new version today!

commented

Looks like you can just change it to

Line 62 in Bagnon_GuildBank\components\tab.lua

From

self.Icon:SetToFileData(iconID)

to

self.Icon:SetTexture(iconID)

http://www.wowinterface.com/forums/showthread.php?p=316520

Tested and it works great