From 4cee09a6d43eaec88f58d37b5e52e7dec51a0353 Mon Sep 17 00:00:00 2001 From: atomaka Date: Sun, 4 Dec 2011 03:14:36 -0500 Subject: [PATCH] Fix issue with low level characters. --- ChoreTracker.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 805d2b6..4c6c884 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -155,8 +155,10 @@ function core:OnInitialize() self.db.global[self.character.realm][self.character.name].lockouts = {} end - if self.db.global[self.character.realm][self.character.name].lfrs == nil and self.character.level == CURRENT_MAX_LEVEL then - self.db.global[self.character.realm][self.character.name].lfrs = {} + if self.db.global[self.character.realm][self.character.name] ~= nil then + if self.db.global[self.character.realm][self.character.name].lfrs == nil and self.character.level == CURRENT_MAX_LEVEL then + self.db.global[self.character.realm][self.character.name].lfrs = {} + end end -- Add LFR stuff to profile if it isn't there already