mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Vendors): Load npc_vendor items in the right order (#3099)
* fix(Core/Vendors): Load npc_vendor items in the right order Before that commit, if you copied a npc_vendor, the order would not be replicated (if all items were on the same `slot`). Now it works fine and it's consistent. * Update ObjectMgr.cpp * fix(sql): ASC position in the query * Update ObjectMgr.cpp Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com> Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -8316,7 +8316,7 @@ void ObjectMgr::LoadVendors()
|
||||
|
||||
std::set<uint32> skip_vendors;
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, item, maxcount, incrtime, ExtendedCost FROM npc_vendor ORDER BY entry, slot ASC");
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, item, maxcount, incrtime, ExtendedCost FROM npc_vendor ORDER BY entry, slot ASC, item, ExtendedCost");
|
||||
if (!result)
|
||||
{
|
||||
sLog->outString();
|
||||
|
||||
Reference in New Issue
Block a user