by Balyn | 13/10/2007 22:34:49

Getting the following errors when Spell Alert loads on the test server. It's working fine in version 2.2.
Interface\AddOns\SpellAlert\SpellAlert.lua:945: attempt to index global 'AlertFrame' (a nil value)
Stack trace: ----------- [string "*:OnValueChanged"]:2: in function <[string "*:OnValueChanged"]:1> [C]: in function `SetMinMaxValues' [string "*:OnLoad"]:4: in function <[string "*:OnLoad"]:1>
Interface\AddOns\SpellAlert\SpellAlert. lua:938: attempt to index global 'AlertFrameText' (a nil value)
Stack trace: ----------- [string "*:OnValueChanged"]:2: in function <[string "*:OnValueChanged"]:1> [C]: in function `SetMinMaxValues' [string "*:OnLoad"]:4: in function <[string "*:OnLoad"]:1>
The errors refer to the following 2 lines of code in the SpellAlert.lua file:
AlertFrame:ClearAllPoints();
and
AlertFrameText:SetFont("Fonts\\FRIZQT__.TTF", SAConfig.zoom, shadow);
Anybody know how to fix this? |