aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_learn.cpp2
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 77c2c4841d9..ff081b71ab7 100644
--- a/src/server/scripts/Commands/cs_learn.cpp
+++ b/src/server/scripts/Commands/cs_learn.cpp
@@ -283,7 +283,7 @@ public:
continue;
// prevent learn talent for different family (cheating)
- if (((1 << petFamily->PetTalentType) & talentTabInfo->CategoryEnumID) == 0)
+ if (((1 << petFamily->PetTalentType) & talentTabInfo->PetTalentMask) == 0)
continue;
// search highest talent rank