mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Achievements: AchievementMgr refactoring
* Extracted base CriteriaHandler class that deals with criteria only and will be reused for future scenario implementation * Fixed players earning guild achievements
This commit is contained in:
@@ -511,7 +511,7 @@ void GuildMgr::LoadGuildRewards()
|
||||
|
||||
uint32 requiredAchievementId = fields[0].GetUInt32();
|
||||
|
||||
if (!sAchievementMgr->GetAchievement(requiredAchievementId))
|
||||
if (!sAchievementStore.LookupEntry(requiredAchievementId))
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", "Guild rewards constains not existing achievement entry %u", requiredAchievementId);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user