Fixed achievements rewarding titles to wrong faction (alliance title for horde char)

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-05-26 11:03:45 +02:00
parent 4658b3be97
commit e4c03aa55a
+1 -1
View File
@@ -1868,7 +1868,7 @@ void AchievementMgr::CompletedAchievement(AchievementEntry const* achievement)
return; return;
// titles // titles
if (uint32 titleId = reward->titleId[GetPlayer()->GetTeam() == HORDE ? 0 : 1]) if (uint32 titleId = reward->titleId[GetPlayer()->GetTeam() == ALLIANCE ? 0 : 1])
{ {
if (CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(titleId)) if (CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(titleId))
GetPlayer()->SetTitle(titleEntry); GetPlayer()->SetTitle(titleEntry);