Fixed error in the NPC Trade system error message

item[1] was user data, so the error message now prints out the item
name.
master
Jeffrey 11 years ago
parent a1f5a88fe7
commit 52f0b21ea6

@ -376,7 +376,7 @@ function onOpenNpcTrade(items)
newItem.price = item[5]
table.insert(tradeItems[SELL], newItem)
else
error("server error: item name " .. item[1] .. " has neither buy or sell price.")
error("server error: item name " .. item[2] .. " has neither buy or sell price.")
end
end

Loading…
Cancel
Save