diff options
author | funjoker <funjoker109@gmail.com> | 2025-05-17 23:45:10 +0200 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2025-05-17 23:45:10 +0200 |
commit | 06d7821e12dc23441d6aabf3f80017987335245d (patch) | |
tree | 2586c14d15348c76c2f06872160fcdb66ab72d0f | |
parent | 107f9d963a8c2fbcc1e783a84aa12102e015302b (diff) |
Core/Misc: Build fix
-rw-r--r-- | src/server/scripts/Commands/cs_learn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp index 557e48fe04e..2dfcfa8cd5c 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -184,7 +184,7 @@ public: static bool HandleLearnAllTalentsCommand(ChatHandler* handler) { Player* player = handler->GetSession()->GetPlayer(); - uint32 playerClass = player->GetClass(); + uint8 playerClass = player->GetClass(); for (uint32 i = 0; i < sTalentStore.GetNumRows(); ++i) { @@ -192,7 +192,7 @@ public: if (!talentInfo) continue; - if (playerClass != talentInfo->ClassID) + if (playerClass != uint8(talentInfo->ClassID)) continue; SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(talentInfo->SpellID, DIFFICULTY_NONE); |