mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-TBC.git
synced 2024-11-12 10:35:10 +01:00
Backported form the WOTLK repo: Ported a (Hopefully) fix a rare nil error when sorting cooldowns. Closes #4 (if it works). Thanks.
This commit is contained in:
parent
f3fd765276
commit
0423ee46ce
@ -187,18 +187,22 @@ function Rekt:SortCDs(which)
|
||||
local i = 1;
|
||||
for k, v in pairs(self.cds[self.targets[which]]) do
|
||||
if not (k == "spec") then
|
||||
tmp[i] = {
|
||||
local ttmp = {
|
||||
currentTime = v[1],
|
||||
endTime = v[2],
|
||||
cd = v[3],
|
||||
spellIcon = v[4],
|
||||
spellID = v[5],
|
||||
spellCategory = v[6]
|
||||
};
|
||||
|
||||
--self:Print(v[1] .. v[2] .. v[3] .. v[4] .. v[5])
|
||||
--self:Print(tmp[i]["currentTime"] .. " " .. tmp[i]["endTime"] .. " " .. tmp[i]["cd"]);-- .. " " .. tmp[i][4] .. " " .. tmp[i][5])
|
||||
i = i + 1;
|
||||
};
|
||||
|
||||
if ttmp then
|
||||
tmp[i] = ttmp;
|
||||
|
||||
--self:Print(v[1] .. v[2] .. v[3] .. v[4] .. v[5])
|
||||
--self:Print(tmp[i]["currentTime"] .. " " .. tmp[i]["endTime"] .. " " .. tmp[i]["cd"]);-- .. " " .. tmp[i][4] .. " " .. tmp[i][5])
|
||||
i = i + 1;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user