From f9fb902f868e5aaba65bf9a5e4f5befe10b1e64a Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Fri, 1 Apr 2011 09:08:43 +0200 Subject: [PATCH] [11302] Fix false error at LoadTrainerTemplates Signed-off-by: NoFantasy --- src/game/ObjectMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index c3b8fca31..47a9e2950 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 609e36a7d..45929075f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11301" + #define REVISION_NR "11302" #endif // __REVISION_NR_H__