From b32b3de6bee68a8406e14b214aafeb24dae99229 Mon Sep 17 00:00:00 2001 From: ckknight Date: Tue, 30 Dec 2008 04:08:07 +0000 Subject: [PATCH] bugfix with FastStats since UnitGUID("player") is nil on first login --- LibDogTag-Unit-3.0.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibDogTag-Unit-3.0.lua b/LibDogTag-Unit-3.0.lua index 03109af..860cf83 100644 --- a/LibDogTag-Unit-3.0.lua +++ b/LibDogTag-Unit-3.0.lua @@ -326,7 +326,6 @@ local nsListHasUnit = setmetatable({}, { __index = function(self, key) return false end }) -local playerGUID = UnitGUID("player") local nextUpdateWackyUnitsTime = 0 DogTag:AddTimerHandler("Unit", function(num, currentTime) local mouseoverGUID = UnitGUID("mouseover") @@ -347,6 +346,7 @@ DogTag:AddTimerHandler("Unit", function(num, currentTime) end end + local playerGUID = unitToGUID.player local petGUID = unitToGUID.pet -- Fire FastStats event for units representing player or pet. for unit, guid in pairs(unitToGUID) do