Fix self error when auto-scanning trainers.
ackis [04-21-09 - 17:05]
Fix self error when auto-scanning trainers.
diff --git a/ARLConfig.lua b/ARLConfig.lua
index e69e1d2..e25b707 100644
--- a/ARLConfig.lua
+++ b/ARLConfig.lua
@@ -1368,9 +1368,9 @@ local function fullOptions()
get = function() return addon.db.profile.scantrainers end,
set = function()
if (addon.db.profile.scantrainers) then
- self:RegisterEvent("TRAINER_SHOW")
+ addon:RegisterEvent("TRAINER_SHOW")
else
- self:UnregisterEvent("TRAINER_SHOW")
+ addon:UnregisterEvent("TRAINER_SHOW")
end
addon.db.profile.scantrainers = not addon.db.profile.scantrainers
end,