From 16b011610603cb3c307500a59afbeb04ee98a460 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 18 Jun 2009 19:51:48 +0000 Subject: [PATCH] Fix nil error reported by Ethan. --- ARLDatamine.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 9131e5f..ab1c9d9 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -982,10 +982,8 @@ function addon:ScanVendor() local found = false for i in pairs(acquire) do -- If the acquire type is a vendor - if (acquire[i]["Type"] == 2) then - if (acquire[j]["ID"] == targetID) then - found = true - end + if (acquire[i]["Type"] == 2) and (acquire[i]["ID"] == targetID) then + found = true end end if (not found) then -- 1.7.9.5