From c2dd32fdea6a61fb3e714912460214dc59f57d4f Mon Sep 17 00:00:00 2001 From: whiterabbit963 Date: Mon, 8 Jan 2024 03:28:53 -0500 Subject: [PATCH] Fix #163 (#164) * fix warden skill id typo * fix invalid member access in CheckSkills() * fix #163, on OptionsPanel checkskills() access --------- Co-authored-by: whiterabbit963 --- src/IndexedDictionaryDe.lua | 2 +- src/OptionsPanel.lua | 2 +- src/TravelWindow.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IndexedDictionaryDe.lua b/src/IndexedDictionaryDe.lua index c62ba11..59c6ca6 100644 --- a/src/IndexedDictionaryDe.lua +++ b/src/IndexedDictionaryDe.lua @@ -207,7 +207,7 @@ function TravelDictionaries:CreateDictionaries() wardenLocations:AddSkill("Appell im Lager des Heeres", "0x70047BFC", "Lager des Heeres (Appell)"); wardenLocations:AddSkill("Appell in Haerondir", "0x70047C23", "Haerondir (Appell)"); wardenLocations:AddSkill("Appell am Udûn-Brückenkopf", "0x7004AE1F", "Udûn-Brückenkopf (Appell)"); - wardenLocations:AddSkill("Appell in Thal", "0x7004A73A", "Thal (Appell)"); + wardenLocations:AddSkill("Appell in Thal", "0x7004D73A", "Thal (Appell)"); wardenLocations:AddSkill("Appell in Járnfast", "0x7004FACA", "Jarnfast (Appell)"); wardenLocations:AddSkill("Appell in Skarháld", "0x7004FACD", "Skarhald (Appell)"); wardenLocations:AddSkill("Appell im Beorningerhús", "0x70052F0A", "Beorningerhús (Appell)"); diff --git a/src/OptionsPanel.lua b/src/OptionsPanel.lua index 83a1c3d..9b064ab 100644 --- a/src/OptionsPanel.lua +++ b/src/OptionsPanel.lua @@ -561,7 +561,7 @@ function OptionsPanel:AddBoxes() -- do the check skills self.checkSkillsButton.Click = function(sender, args) - TravelWindow:CheckSkills(true); + self.mainWindow:CheckSkills(true); end end diff --git a/src/TravelWindow.lua b/src/TravelWindow.lua index e480877..316510a 100644 --- a/src/TravelWindow.lua +++ b/src/TravelWindow.lua @@ -1153,7 +1153,7 @@ function TravelWindow:CheckSkills(report) local newShortcut = false; -- loop through all the shortcuts and list those those that are not learned for i = 1, #TravelShortcuts, 1 do - local wasFound = TravelShortcuts[i].shortcut; + local wasFound = TravelShortcuts[i].found; if (TravelWindow:FindSkill(TravelShortcuts[i])) then if not wasFound then newShortcut = true;