[11302] Fix false error at LoadTrainerTemplates

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-04-01 09:08:43 +02:00
parent 4d262b593d
commit f9fb902f86
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11301"
#define REVISION_NR "11302"
#endif // __REVISION_NR_H__