From 98007f859b7318570c0c923a00aa32fc485c8ec8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 6 Aug 2023 20:21:34 +0200 Subject: Core/Misc: Turn ChrSpecialization into enum class --- src/server/scripts/Commands/cs_learn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') 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); -- cgit v1.2.3