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:
@@ -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