mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.4 - http://otclient.net/showthread.php?tid=160
This commit is contained in:
@@ -1136,10 +1136,12 @@ function Market.loadMarketItems(category)
|
||||
if category == MarketCategory.All then
|
||||
-- loop all categories
|
||||
for category = MarketCategory.First, MarketCategory.Last do
|
||||
for i = 1, #marketItems[category] do
|
||||
local item = marketItems[category][i]
|
||||
if isItemValid(item, category, searchFilter) then
|
||||
table.insert(currentItems, item)
|
||||
if marketItems[category] then
|
||||
for i = 1, #marketItems[category] do
|
||||
local item = marketItems[category][i]
|
||||
if isItemValid(item, category, searchFilter) then
|
||||
table.insert(currentItems, item)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user