View Single Post
06-17-17, 12:09 AM   #9
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
All that Addon.xxx = yyy (well, anything requiring character or other addon data) should at least go into the OnEvent script under a
Code:
 if event == "PLAYER_LOGIN" then
      Addon.xxx = yyy
end
code block so that the system has a chance to do some loading for your character before actually trying to initialise those variables. It's why K.Spec is failing first time in.

you will have to change
Code:
Loading:SetScript("OnEvent", function()
too
Code:
Loading:SetScript("OnEvent", function(self, event)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-17-17 at 01:13 AM.
  Reply With Quote