Updated market to work on >10.90

This commit is contained in:
OTCv8
2020-01-23 08:00:37 +01:00
parent 9b9ade0bc9
commit 440bf56060
4 changed files with 15 additions and 4 deletions

View File

@@ -726,8 +726,10 @@ local function initMarketItems()
}
-- add new market item
table.insert(marketItems[marketData.category], marketItem)
itemSet[marketData.tradeAs] = true
if marketItems[marketData.category] ~= nil then
table.insert(marketItems[marketData.category], marketItem)
itemSet[marketData.tradeAs] = true
end
end
end
end