mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11302] Fix false error at LoadTrainerTemplates
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4d262b593d
commit
f9fb902f86
2 changed files with 2 additions and 2 deletions
|
|
@ -8169,7 +8169,7 @@ void ObjectMgr::LoadTrainerTemplates()
|
|||
{
|
||||
if (cInfo->trainerId)
|
||||
{
|
||||
if (trainer_ids.count(cInfo->trainerId) > 0)
|
||||
if (m_mCacheTrainerTemplateSpellMap.find(cInfo->trainerId) != m_mCacheTrainerTemplateSpellMap.end())
|
||||
trainer_ids.erase(cInfo->trainerId);
|
||||
else
|
||||
sLog.outErrorDb("Creature (Entry: %u) has trainer_id = %u for nonexistent trainer template", cInfo->Entry, cInfo->trainerId);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11301"
|
||||
#define REVISION_NR "11302"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue