From 7773a606d3da81be952f2b1e70c9b66fca304de2 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Fri, 22 Oct 2010 23:09:14 +0000 Subject: [PATCH] Possible bug fix --- Modules/Texts/Texts.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Texts/Texts.lua b/Modules/Texts/Texts.lua index f336b17..d59c22b 100644 --- a/Modules/Texts/Texts.lua +++ b/Modules/Texts/Texts.lua @@ -383,7 +383,7 @@ local function clearText(obj) end function mod:ClearTexts() - for k, v in pairs(mod.texts) do + for k, v in pairs(mod.texts or {}) do clearText(v) end wipe(mod.texts) @@ -459,7 +459,7 @@ function mod:OnInitialize() self:ReInit() - self.core = LibCore:New(mod, environment, "StarTip.Texts", {["StarTip.Texts"] = {}}, nil, StarTip.db.profile.errorLevel) + self.core = StarTip.core --LibCore:New(mod, environment, "StarTip.Texts", {["StarTip.Texts"] = {}}, nil, StarTip.db.profile.errorLevel) StarTip:SetOptionsDisabled(options, true) -- 1.7.9.5