Core/Players: assign forbidden skills to a proper position to no longer interfere with legit skills that have been stored as first element.

* This fixes aura-based skills to no longer invalidate legit skills that have been assigned to position 0, breaking them entirely in the process
This commit is contained in:
Ovahlord
2022-09-11 10:03:05 +02:00
parent 9cfc74d8c8
commit 2556d6d705

View File

@@ -26223,7 +26223,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(race), 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;
}