mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
bugfix with FastStats since UnitGUID("player") is nil on first login
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user