From 23624ed75abc8cbb77bb2e24a08e0836e4c41db5 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 2 Mar 2025 15:43:34 +0100 Subject: Core: Updated to 11.1.0 --- src/server/scripts/Commands/cs_learn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 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)) -- cgit v1.2.3