From 2fc15c44c87e605f85a9269b57ffc79ddc4ceb02 Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 21 Apr 2009 17:05:37 +0000 Subject: [PATCH] Fix self error when auto-scanning trainers. --- ARLConfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 1.7.9.5