Fixing missing quest keys from any toon
Leandro Silva [10-19-18 - 19:30]
Fixing missing quest keys from any toon
diff --git a/LeoAltholic.lua b/LeoAltholic.lua
index 845deab..d81fa18 100644
--- a/LeoAltholic.lua
+++ b/LeoAltholic.lua
@@ -428,6 +428,15 @@ end
local function fixWrits()
for charName, char in pairs(LeoAltholic.savedVariables.CharList) do
+ if char.quests == nil then
+ LeoAltholic.savedVariables.CharList[charName].quests = {
+ actives = {},
+ tracked = {},
+ writs = {}
+ }
+ end
+ if char.quests.tracked == nil then LeoAltholic.savedVariables.CharList[charName].quests.tracked = {} end
+ if char.quests.writs == nil then LeoAltholic.savedVariables.CharList[charName].quests.writs = {} end
for trackedId, trackedQuest in pairs(char.quests.writs) do
if trackedQuest.craft == nil then
local craft = LeoAltholic.GetCraftFromQuest(trackedQuest.name)
diff --git a/LeoAltholic.txt b/LeoAltholic.txt
index b4ff77f..6de8afe 100644
--- a/LeoAltholic.txt
+++ b/LeoAltholic.txt
@@ -1,6 +1,6 @@
## Title: Leo's Altholic
## APIVersion: 100024 100025
-## Version: 1.3.4
+## Version: 1.3.5
## Author: |c39B027@LeandroSilva|r
## SavedVariables: LeoAltholicSavedVariables
## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoAltholicInit.lua b/LeoAltholicInit.lua
index 0626caf..04c3ef0 100644
--- a/LeoAltholicInit.lua
+++ b/LeoAltholicInit.lua
@@ -4,5 +4,5 @@ LeoAltholicUI = LeoAltholicUI or {}
LeoAltholic.name = "LeoAltholic"
LeoAltholic.displayName = "Leo's Altholic"
-LeoAltholic.version = "1.3.4"
+LeoAltholic.version = "1.3.5"
LeoAltholic.chatPrefix = "|c39B027" .. LeoAltholic.name .. "|r: "