- Added upvalues

- Fixed an incorrect comparison
This commit is contained in:
cybeloras
2012-04-03 03:30:29 +00:00
parent f9f35bf4c1
commit bd9b115de1

View File

@ -13,6 +13,10 @@ if MINOR_VERSION > _G.DogTag_Unit_MINOR_VERSION then
_G.DogTag_Unit_MINOR_VERSION = MINOR_VERSION
end
local select, type, pairs, ipairs, next, setmetatable = select, type, pairs, ipairs, next, setmetatable
local UnitIsUnit, UnitName, UnitGUID, UnitMana, UnitExists =
UnitIsUnit, UnitName, UnitGUID, UnitMana, UnitExists
DogTag_Unit_funcs[#DogTag_Unit_funcs+1] = function(DogTag_Unit, DogTag)
local L = DogTag_Unit.L
@ -236,7 +240,7 @@ local function PARTY_MEMBERS_CHANGED()
local guid = unitToGUID[unit]
refreshGUID(unit)
local newGUID = unitToGUID[unit]
if guid ~= unitGUID then
if guid ~= newGUID then
DogTag:FireEvent("UnitChanged", unit)
end
end