mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
fixed preventOverpayingForVendorItems oversight
This commit is contained in:
@@ -1649,7 +1649,7 @@ void AuctionHouseBot::PopulateVendorItemsPrices()
|
||||
uint32_t numItems = f[0].Get<uint32>();
|
||||
vendorItemsPrices = std::vector<uint32>(numItems, UINT32_MAX);
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT v.entry, MIN(v.SellPrice) AS SellPrice FROM item_template v JOIN npc_vendor p ON v.entry = p.item GROUP BY v.entry");
|
||||
QueryResult result = WorldDatabase.Query("SELECT v.entry, MIN(v.SellPrice) AS SellPrice FROM item_template v JOIN npc_vendor p ON v.entry = p.item WHERE v.class != {} GROUP BY v.entry", ITEM_CLASS_TRADE_GOODS);
|
||||
if (result)
|
||||
{
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user