Core/Players: Fixed "Your talents have been reset" at login.
Reason behind this is that when you are not specced your talents field in database is "0 0". However, zero is an invalid talent tree ID. As such, ignore it.
This commit is contained in:
1 parent
f4602811d5
commit
c33e366eff
1 file changed
+1
-1
@@ -17337,7 +17337,7 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
|
||||
uint32 talentTree = atol(talentTrees[i]);
|
||||
if (sTalentTabStore.LookupEntry(talentTree))
|
||||
SetPrimaryTalentTree(i, talentTree);
|
||||
else if (i == GetActiveSpec())
|
||||
else if (i == GetActiveSpec() && talentTree != 0)
|
||||
SetAtLoginFlag(AT_LOGIN_RESET_TALENTS); // invalid tree, reset talents
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user