Core/Misc: Reduce number of player spec hardcoded checks

Port From (https://github.com/TrinityCore/TrinityCore/commit/054723241eaf1abe7d45a96460e84b9ff113ffb2)
This commit is contained in:
hondacrx
2023-09-13 19:47:12 -04:00
parent 070b35d6e8
commit 7cb343e4f9
6 changed files with 22 additions and 47 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ namespace Game.DataStorage
//ASSERT(chrSpec.OrderIndex < MAX_SPECIALIZATIONS);
uint storageIndex = chrSpec.ClassID;
if (chrSpec.Flags.HasAnyFlag(ChrSpecializationFlag.PetOverrideSpec))
if (chrSpec.GetFlags().HasFlag(ChrSpecializationFlag.PetOverrideSpec))
{
//ASSERT(!chrSpec.ClassID);
storageIndex = (int)Class.Max;