From c248c84d8896e99736bb19b3c977a88a1dce19bb Mon Sep 17 00:00:00 2001 From: torhal Date: Mon, 8 Jun 2009 23:20:20 +0000 Subject: [PATCH] Upvalued tostring(). In addon:ScanToolTip(): Assign value of is_vendor to scan_data.is_vendor. in addon:PrintScanResults(): Re-instated scan_data.is_vendor check. --- ARLDatamine.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index f0d7196..448f95e 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -42,7 +42,7 @@ local table, string = table, string local tconcat, tinsert, tsort, twipe = table.concat, table.insert, table.sort, table.wipe local strlower, strmatch = string.lower, string.match local gsub = string.gsub -local tonumber = tonumber +local tonumber, tostring = tonumber, tostring local ipairs, pairs = ipairs, pairs ------------------------------------------------------------------------------- @@ -2176,6 +2176,7 @@ do scan_data.match_name = name scan_data.recipe_list = recipe_list scan_data.reverse_lookup = reverse_lookup + scan_data.is_vendor = is_vendor -- Parse all the lines of the tooltip for i = 1, ARLDatamineTT:NumLines(), 1 do @@ -2374,7 +2375,7 @@ do self:Print(GetSpellInfo(scan_data.specialty)) end - if is_vendor then + if scan_data.is_vendor then if (not flags[4]) then tinsert(missing_flags, "4 (Vendor)") end -- 1.7.9.5