From 98ef74658de9bbb8d90c9f4a60d857d99a91d69a Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Sat, 18 May 2024 08:32:15 -0700 Subject: [PATCH] 3.3.5 table.remove will remove last index even if index is specified but out of range. --- functions/mythicdungeon/mythicdungeon.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/mythicdungeon/mythicdungeon.lua b/functions/mythicdungeon/mythicdungeon.lua index 5e719644..ab757086 100644 --- a/functions/mythicdungeon/mythicdungeon.lua +++ b/functions/mythicdungeon/mythicdungeon.lua @@ -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