Moved assignment of reputation levels from addon:OnEnable() to addon:Scan() - fixes tickets 920 and 933.
James D. Callahan III [03-09-10 - 10:03]
Moved assignment of reputation levels from addon:OnEnable() to addon:Scan() - fixes tickets 920 and 933.
diff --git a/ARL.lua b/ARL.lua
index 96015b1..c119af4 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -634,12 +634,6 @@ function addon:OnEnable()
Player["Class"] = select(2, UnitClass("player"))
-------------------------------------------------------------------------------
- -- Get the player's reputation levels.
- -------------------------------------------------------------------------------
- Player["Reputation"] = {}
- Player:SetReputationLevels()
-
- -------------------------------------------------------------------------------
-- Get the player's professions.
-------------------------------------------------------------------------------
Player.professions = {
@@ -1645,6 +1639,12 @@ do
self:UpdateFilters()
Player:MarkExclusions()
+ -------------------------------------------------------------------------------
+ -- Get the player's reputation levels.
+ -------------------------------------------------------------------------------
+ Player["Reputation"] = Player["Reputation"] or {}
+ Player:SetReputationLevels()
+
if textdump then
self:DisplayTextDump(recipe_list, Player.current_prof)
else