Core/Skills: fixed racemask check when initializing player info skills

This commit is contained in:
Ovahlord committed 2025-06-21 02:03:56 +02:00
1 parent a9579cb33b
commit df676d3bc6
1 file changed
+1 -1
+1 -1
View File
@@ -3507,7 +3507,7 @@ void ObjectMgr::LoadPlayerInfo()
for (SkillRaceClassInfoEntry const* rcInfo : sSkillRaceClassInfoStore)
if (rcInfo->Availability == 1)
for (uint32 raceIndex = RACE_HUMAN; raceIndex < MAX_RACES; ++raceIndex)
if (rcInfo->RaceMask == 0 || (rcInfo->RaceMask & (1 << (raceIndex - 1)) != 0))
if (rcInfo->RaceMask == 0 || (rcInfo->RaceMask & (1u << (raceIndex - 1))) != 0)
for (uint32 classIndex = CLASS_WARRIOR; classIndex < MAX_CLASSES; ++classIndex)
if (rcInfo->ClassMask == -1 || rcInfo->ClassMask == 0 || ((1 << (classIndex - 1)) & rcInfo->ClassMask))
if (auto const& playerInfo = Trinity::Containers::MapGetValuePtr(_playerInfo, { Races(raceIndex), Classes(classIndex) }))