Fixed error in the NPC Trade system error message

item[1] was user data, so the error message now prints out the item
name.
This commit is contained in:
Jeffrey 2013-01-08 00:30:33 -06:00
parent a1f5a88fe7
commit 52f0b21ea6
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ function onOpenNpcTrade(items)
newItem.price = item[5] newItem.price = item[5]
table.insert(tradeItems[SELL], newItem) table.insert(tradeItems[SELL], newItem)
else 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
end end