mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10905] Fixed vendor templates work.
* Avoid unexpected errors at template loading for shared templates for many npc. * Really use vendor template in work.
This commit is contained in:
parent
72255d1bb1
commit
4a7638c80e
3 changed files with 3 additions and 3 deletions
|
|
@ -9066,7 +9066,7 @@ void ObjectMgr::LoadVendorTemplates()
|
|||
{
|
||||
if (cInfo->vendorId)
|
||||
{
|
||||
if (vendor_ids.count(cInfo->vendorId) > 0)
|
||||
if (m_mCacheVendorTemplateItemMap.find(cInfo->vendorId) != m_mCacheVendorTemplateItemMap.end())
|
||||
vendor_ids.erase(cInfo->vendorId);
|
||||
else
|
||||
sLog.outErrorDb("Creature (Entry: %u) has vendor_id = %u for nonexistent vendor template", cInfo->Entry, cInfo->vendorId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue