mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
- Cheap fix for LibDogTag-Unit-3.0.lua line 223: attempt to index local 'guidToUnits_oldGuid' (a nil value). See http://wow.curseforge.com/addons/tellmewhen/tickets/539-random-error-2/ for more info. I don't know why this happened, but hopefully I fixed it.
This commit is contained in:
@ -220,9 +220,11 @@ local function refreshGUID(unit)
|
||||
unitToGUID[unit] = guid
|
||||
if oldGuid then
|
||||
local guidToUnits_oldGuid = guidToUnits[oldGuid]
|
||||
guidToUnits_oldGuid[unit] = nil
|
||||
if not next(guidToUnits_oldGuid) then
|
||||
guidToUnits[oldGuid] = del(guidToUnits_oldGuid)
|
||||
if guidToUnits_oldGuid then
|
||||
guidToUnits_oldGuid[unit] = nil
|
||||
if not next(guidToUnits_oldGuid) then
|
||||
guidToUnits[oldGuid] = del(guidToUnits_oldGuid)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user