Quantcast

Change another direct ref to addon.db.

Peter Eliasson [08-05-16 - 21:01]
Change another direct ref to addon.db.
Filename
src/highscore.lua
diff --git a/src/highscore.lua b/src/highscore.lua
index 7e0cc7e..ba81e67 100644
--- a/src/highscore.lua
+++ b/src/highscore.lua
@@ -445,7 +445,7 @@ end
 -- Removes parses that is older than "olderThanDate". If minParsesPerPlayer
 -- is > 0, that many parses will be kept for the player/encounter combination.
 function highscore:PurgeParses(olderThanDate, minParsesPerPlayer)
-	local db = addon.db.realm.modules["highscore"];
+	local db = self:GetDB();
 	local oldGroupParseIds = {};

 	for id, groupParse in pairs(db.groupParses) do