From 0bdb40e304698270f364b7a3f612497db0a3a9a7 Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Sun, 26 Mar 2017 20:45:13 +0200 Subject: [PATCH] Fix an issue with POI integration --- TomTom_POIIntegration.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TomTom_POIIntegration.lua b/TomTom_POIIntegration.lua index 1f6d0a5..bb47620 100755 --- a/TomTom_POIIntegration.lua +++ b/TomTom_POIIntegration.lua @@ -167,11 +167,11 @@ local function poi_OnClick(self, button) local m, f = GetCurrentMapAreaID() local questIndex = self.quest and self.quest.questLogIndex - if not questIndex and self.questId then - -- Lookup the questIndex for the given questId + if not questIndex and self.questID then + -- Lookup the questIndex for the given questID for idx = 1, GetNumQuestLogEntries(), 1 do local qid = getQIDFromIndex(idx) - if qid == self.questId then + if qid == self.questID then questIndex = idx end end -- 1.7.9.5