From d0ba867e743bd6fa7fba1363cbe10e08b45615a0 Mon Sep 17 00:00:00 2001 From: pschifferer Date: Wed, 4 Nov 2009 04:41:25 +0000 Subject: [PATCH] Added a check for nil item names at some merchants. --- CauldronUtil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 1.7.9.5