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:
parent
a1f5a88fe7
commit
52f0b21ea6
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue