3.3.5 table.remove will remove last index even if index is specified but out of range.

This commit is contained in:
andrew6180
2024-05-18 08:32:15 -07:00
parent 3095ac1ac4
commit 98ef74658d
+3 -1
View File
@@ -36,7 +36,9 @@ DetailsMythicPlusFrame:RegisterEvent("START_TIMER")
function Details222.MythicPlus.LogStep(log)
local today = date("%d/%m/%y %H:%M:%S")
table.insert(Details.mythic_plus_log, 1, today .. "|" .. log)
tremove(Details.mythic_plus_log, 50)
if #Details.mythic_plus_log >= 50 then
tremove(Details.mythic_plus_log, 50)
end
end
function DetailsMythicPlusFrame.BossDefeated(this_is_end_end, encounterID, encounterName, difficultyID, raidSize, endStatus) --hold your breath and count to ten