Quantcast

Added a check for nil item names at some merchants.

pschifferer [11-04-09 - 04:41]
Added a check for nil item names at some merchants.
Filename
CauldronUtil.lua
diff --git a/CauldronUtil.lua b/CauldronUtil.lua
index 92b9ed1..538c320 100644
--- a/CauldronUtil.lua
+++ b/CauldronUtil.lua
@@ -217,7 +217,7 @@ function Cauldron:GetMerchantItems()
 		-- Cauldron:info("MERCHANT: item="..name.."; price="..tostring(price).."; quantity="..tostring(quantity).."; avail="..tostring(avail).."; extCost="..tostring(extCost));
 		local maxStack = GetMerchantItemMaxStack(i);

-		if avail ~= 0 then
+		if (avail ~= 0) and name then
 			items[name] = {
 				['index'] = i,
 				['price'] = price,