Currently, my addon is set up so that if the addon has never been loaded, it will automatically load a set of defaults based on the player's class.
The problem is that, from that point, if I log on another character that hasn't loaded the addon, it automatically loads the saved variables from the last character instead of loading the new character's defaults...
So lets say in my TOC file I have
## SavedVariablesPerCharacter: MyAddonPerCharacter
## SavedVariables: MyAddon
I have tried adding the following to the ADDON_LOADED event:
if MyAddonPerCharacter == nil then
--stuff goes here that loads the player's class defaults
end
but it didn't work...
any ideas??