Is GetTexture() bugged? I've been struggling for ages with a buff reminder script which works on live but doesn't on beta. It behaves extremely strangely: GetTexture() (in this case at least) returns nil, while a valid texture is set. This code, for instance:
Code:
texture = select(3, GetSpellInfo(buff))
self.icon:SetTexture(texture)
print(texture)
print(self.icon:GetTexture())
Returns:
Interface\Icons\Spell_Holy_InnerFire
nil
|
The texture is set, though. Similarly, when I do it directly:
Code:
self.icon:SetTexture(select(3, GetSpellInfo(buff)))
The texture is set, but GetTexture() returns nil.