mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Spells: Fix startup crash
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)) | \
|
||||
|
||||
Reference in New Issue
Block a user