bugfix with FastStats since UnitGUID("player") is nil on first login

This commit is contained in:
ckknight
2008-12-30 04:08:07 +00:00
parent 896a0d4d2a
commit b32b3de6be

View File

@ -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