diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-03-02 15:43:34 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-03-02 15:43:34 +0100 |
commit | 23624ed75abc8cbb77bb2e24a08e0836e4c41db5 (patch) | |
tree | 593c0a5f9e4b75404ff3d30729ac08a7ea93f690 /src/server/scripts/Commands | |
parent | dac15a32a6361a5e47e17b621828369b1b7a4d84 (diff) |
Core: Updated to 11.1.0
Diffstat (limited to 'src/server/scripts/Commands')
-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 2bbcf492c4a..2eea35542de 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; if (talentInfo->SpecID && player->GetPrimarySpecialization() != ChrSpecialization(talentInfo->SpecID)) |