Overall segment load fix

This commit is contained in:
Tercio Jose
2023-06-23 15:25:39 -03:00
parent a86f717200
commit 28255ac7d0
3 changed files with 6 additions and 17 deletions
+3 -3
View File
@@ -5724,12 +5724,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
--load up data from saved variables for the account (shared among all the players' characters; this is not the Blizzard account, lol).
Details222.LoadSavedVariables.SharedData()
--load the profiles
Details:LoadConfig()
--load data of the segments saved from latest game session
Details222.LoadSavedVariables.CombatSegments()
--load the profiles
Details:LoadConfig()
Details:UpdateParserGears()
--load auto run code
+3 -12
View File
@@ -167,21 +167,12 @@ function Details222.LoadSavedVariables.CombatSegments()
--restore saved overall data
do
if (not Details.overall_clear_logout) then
if (currentCharacterData.tabela_overall) then
Details.tabela_overall = Details.CopyTable(currentCharacterData.tabela_overall)
Details:RestoreOverallMetatables()
else
Details.tabela_overall = Details.combate:NovaTabela()
end
if (currentCharacterData.tabela_overall) then
Details.tabela_overall = Details.CopyTable(currentCharacterData.tabela_overall)
Details:RestoreOverallMetatables()
else
Details.tabela_overall = Details.combate:NovaTabela()
end
if (currentCharacterData.tabela_overall) then
Details:Destroy(currentCharacterData.tabela_overall)
currentCharacterData.tabela_overall = nil
end
end
--restore saved segments
-2
View File
@@ -90,12 +90,10 @@ function Details:SaveConfig()
if (Details.overall_clear_logout) then
if (_detalhes_database.tabela_overall) then
Details:Destroy(_detalhes_database.tabela_overall)
_detalhes_database.tabela_overall = nil
end
else
_detalhes_database.tabela_overall = Details.tabela_overall
--did it prepared the overall table for save?
end
local name, instanceType = GetInstanceInfo()