mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
(Hopefully) fix a rare nil error when sorting cooldowns. Closes #4 (if it works). Thanks.
This commit is contained in:
parent
d3a10c4781
commit
ef84e92e9a
@ -187,7 +187,7 @@ 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],
|
||||
@ -196,11 +196,15 @@ function Rekt:SortCDs(which)
|
||||
spellCategory = v[6]
|
||||
};
|
||||
|
||||
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
|
||||
|
||||
if not tmp then return end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user