diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-08-06 20:21:34 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-08-07 00:05:36 +0200 |
| commit | 98007f859b7318570c0c923a00aa32fc485c8ec8 (patch) | |
| tree | ef8405fa2d3740b6531a510673a0124dd0c2c957 /src/server/scripts/Commands | |
| parent | d2784d4c65ec987fe587718d96b2feb885905e13 (diff) | |
Core/Misc: Turn ChrSpecialization into enum class
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_learn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp index d06cce75a78..2986bb3ce13 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -195,7 +195,7 @@ public: if (playerClass != talentInfo->ClassID) continue; - if (talentInfo->SpecID && player->GetPrimarySpecialization() != talentInfo->SpecID) + if (talentInfo->SpecID && player->GetPrimarySpecialization() != ChrSpecialization(talentInfo->SpecID)) continue; SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(talentInfo->SpellID, DIFFICULTY_NONE); |
