Core/Spells: Fix startup crash

This commit is contained in:
Shauren
2024-09-22 13:11:01 +02:00
parent 577ae1f8e0
commit 918fb8b856
3 changed files with 6 additions and 4 deletions

View File

@@ -27355,7 +27355,7 @@ Pet* Player::SummonPet(uint32 entry, Optional<PetSaveMode> slot, float x, float
return pet;
}
std::array<uint32, MAX_CLASS_ID + 1> MasterySpells =
std::array<uint32, MAX_CLASSES> MasterySpells =
{
0,
87500, // Warrior
@@ -27368,7 +27368,10 @@ std::array<uint32, MAX_CLASS_ID + 1> MasterySpells =
86467, // Mage
87498, // Warlock
0,
87491 // Druid
87491, // Druid
0,
0,
0
};
bool Player::CanUseMastery() const

View File

@@ -192,7 +192,7 @@ struct PlayerSpell
bool favorite : 1;
};
extern std::array<uint32, MAX_CLASS_ID + 1> MasterySpells;
extern std::array<uint32, MAX_CLASSES> MasterySpells;
struct StoredAuraTeleportLocation
{

View File

@@ -163,7 +163,6 @@ enum Classes : uint8
// max+1 for player class
#define MAX_CLASSES 15
constexpr uint32 MAX_CLASS_ID = CLASS_DRUID;
#define CLASSMASK_ALL_PLAYABLE \
((1<<(CLASS_WARRIOR-1)) | \