From 7cd2259a57430b47cbf7305793252a473ec3d6ab Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 26 May 2009 17:36:14 +0000 Subject: [PATCH] Add a fix for duplicate entries for reputations. --- AckisRecipeList.lua | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index d79e88f..2ffa710 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -769,14 +769,7 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) acquire[index]["ID"] = AcquireID --@debug@ - self:Print(AcquireID) - -- We haven't seen this Acquire ID before (trainer ID, etc) - if (not AcquireIDList[AcquireID]) then - AcquireIDList[AcquireID] = true - self:Print("Adding") - else - self:Print("Duplicate entry: " .. SpellID .. " AcquireID: " .. AcquireID) - end + local AcquireIDNumber = AcquireID --@end-debug@ i = i + 2 @@ -787,10 +780,26 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) acquire[index]["RepLevel"] = RepLevel acquire[index]["RepVendor"] = RepVendor i = i + 2 + + --@debug@ + AcquireIDNumber = RepVendor + --@end-debug@ + end index = index + 1 + --@debug@ + self:Print(AcquireIDNumber) + -- We haven't seen this Acquire ID before (trainer ID, etc) + if (not AcquireIDList[AcquireIDNumber]) then + AcquireIDList[AcquireIDNumber] = true + self:Print("Adding") + else + self:Print("Duplicate entry: " .. SpellID .. " AcquireID: " .. AcquireIDNumber) + end + --@end-debug@ + end -- Populate the location field with all the data -- 1.7.9.5