mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
[7509] Use defines instead explcit value for talent rank cound (in general and for pets)
This commit is contained in:
parent
befa6c5c86
commit
695ceabe3e
9 changed files with 27 additions and 24 deletions
|
|
@ -343,7 +343,7 @@ void LoadDBCStores(const std::string& dataPath)
|
|||
{
|
||||
TalentEntry const *talentInfo = sTalentStore.LookupEntry(i);
|
||||
if (!talentInfo) continue;
|
||||
for (int j = 0; j < 5; j++)
|
||||
for (int j = 0; j < MAX_TALENT_RANK; j++)
|
||||
if(talentInfo->RankID[j])
|
||||
sTalentSpellPosMap[talentInfo->RankID[j]] = TalentSpellPos(i,j);
|
||||
}
|
||||
|
|
@ -367,7 +367,7 @@ void LoadDBCStores(const std::string& dataPath)
|
|||
|
||||
// find talent rank
|
||||
uint32 curtalent_maxrank = 0;
|
||||
for(uint32 k = 5; k > 0; --k)
|
||||
for(uint32 k = MAX_TALENT_RANK; k > 0; --k)
|
||||
{
|
||||
if(talentInfo->RankID[k-1])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue