Overall segment load fix
This commit is contained in:
+3
-3
@@ -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
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user