Remove unneeded loading bar for referenced vendors
--HG-- branch : trunk
This commit is contained in:
@@ -8263,19 +8263,11 @@ int ObjectMgr::LoadReferenceVendor(int32 vendor, int32 item, std::set<uint32> *s
|
|||||||
// find all items from the reference vendor
|
// find all items from the reference vendor
|
||||||
QueryResult_AutoPtr result = WorldDatabase.PQuery("SELECT item, maxcount, incrtime, ExtendedCost FROM npc_vendor WHERE entry='%d' ORDER BY slot ASC", item);
|
QueryResult_AutoPtr result = WorldDatabase.PQuery("SELECT item, maxcount, incrtime, ExtendedCost FROM npc_vendor WHERE entry='%d' ORDER BY slot ASC", item);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
|
||||||
barGoLink bar(1);
|
|
||||||
|
|
||||||
bar.step();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
barGoLink bar(result->GetRowCount());
|
|
||||||
|
|
||||||
uint32 count = 0;
|
uint32 count = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
bar.step();
|
|
||||||
Field* fields = result->Fetch();
|
Field* fields = result->Fetch();
|
||||||
|
|
||||||
int32 item_id = fields[0].GetInt32();
|
int32 item_id = fields[0].GetInt32();
|
||||||
|
|||||||
Reference in New Issue
Block a user