Core/Skills: assign loaded skills that have been marked as forbidden to a proper skill position to avoid interfering with legit skills

closes #332
This commit is contained in:
Ovahlord committed 2022-03-25 11:37:52 +01:00
1 parent f573f1f8e3
commit a82fe54bb7
1 file changed
+1 -1
+1 -1
View File
@@ -25825,7 +25825,7 @@ void Player::_LoadSkills(PreparedQueryResult result)
TC_LOG_ERROR("entities.player", "Player::_LoadSkills: Player '%s' (%s, Race: %u, Class: %u) has forbidden skill %u for his race/class combination",
GetName().c_str(), GetGUID().ToString().c_str(), uint32(getRace()), uint32(getClass()), skill);
mSkillStatus.insert(SkillStatusMap::value_type(skill, SkillStatusData(0, SKILL_DELETED)));
mSkillStatus.insert(SkillStatusMap::value_type(skill, SkillStatusData(mSkillStatus.size(), SKILL_DELETED)));
continue;
}