Replacing table.wipe with Details:Destroy()

This commit is contained in:
Tercio Jose
2023-05-22 15:31:29 -03:00
parent fa0d1e1d08
commit 0cdfa2b900
40 changed files with 1205 additions and 1322 deletions
+6 -6
View File
@@ -453,10 +453,10 @@ function Details:OpenRaidHistoryWindow(raidName, bossEncounterId, difficultyId,
local currentGuild = guildDropdown.value
--wipe data
wipe(difficultyList)
wipe(bossList)
wipe(raidList)
wipe(guildList)
Details:Destroy(difficultyList)
Details:Destroy(bossList)
Details:Destroy(raidList)
Details:Destroy(guildList)
local bossRepeated = {}
local raidRepeated = {}
@@ -618,8 +618,8 @@ function Details:OpenRaidHistoryWindow(raidName, bossEncounterId, difficultyId,
local raidSelected = DetailsRaidHistoryWindow.select_raid:GetValue()
local bossRepeated = {}
wipe(bossList)
wipe(difficultyList)
Details:Destroy(bossList)
Details:Destroy(difficultyList)
for difficulty, encounterIdTable in pairs(db) do
if (type(difficulty) == "number" and allowedKeysForDifficulty[difficulty]) then