Fixed achievements rewarding titles to wrong faction (alliance title for horde char)
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user