aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Server/Protocol
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-01-29 18:22:50 +0100
committerShauren <shauren.trinity@gmail.com>2012-01-29 18:22:50 +0100
commit23c44b2a16e0347e2f2ee61b9949b7b7a3072fb1 (patch)
treef1d69dd585b7b3db0f41540aa8141966c6fd700f /src/server/game/Server/Protocol
parentef471da666c39025fa9a44338c1d4071fbca3a9a (diff)
Core/Players: Fixed talents tree specific spells to work with dual spec
Diffstat (limited to 'src/server/game/Server/Protocol')
-rwxr-xr-xsrc/server/game/Server/Protocol/Handlers/SkillHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/SkillHandler.cpp b/src/server/game/Server/Protocol/Handlers/SkillHandler.cpp
index 09d8b42c0ab..2e4ef5cb40d 100755
--- a/src/server/game/Server/Protocol/Handlers/SkillHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/SkillHandler.cpp
@@ -46,7 +46,7 @@ void WorldSession::HandleLearnPreviewTalents(WorldPacket& recvPacket)
// prevent cheating (selecting new tree with points already in another)
if (tabPage >= 0) // -1 if player already has specialization
{
- if (TalentTabEntry const* talentTabEntry = sTalentTabStore.LookupEntry(_player->GetPrimaryTalentTree()))
+ if (TalentTabEntry const* talentTabEntry = sTalentTabStore.LookupEntry(_player->GetPrimaryTalentTree(_player->GetActiveSpec())))
{
if (talentTabEntry->tabpage != tabPage)
{