aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-18 18:53:09 +0200
committerMachiavelli <none@none>2009-06-18 18:53:09 +0200
commitd0ab817a0463f3063c345100af6703e6fe65824a (patch)
tree594652e167292dcebc31d36adfe0aa33e33afc24 /src
parent6b13edd6d112ad098f6f0d611aed7ecf27994d8b (diff)
* More updating of iterator data types in loops
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index aae851345f3..e1cc14ac319 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20820,7 +20820,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data)
if(talentGroupCount)
{
// loop through all specs (only 1 for now)
- for(uint32 groups = 0; groups < talentGroupCount; ++groups)
+ for(uint8 groups = 0; groups < talentGroupCount; ++groups)
{
uint8 talentIdCount = 0;
size_t pos = data->wpos();
@@ -20829,7 +20829,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data)
// find class talent tabs (all players have 3 talent tabs)
uint32 const* talentTabIds = GetTalentTabPages(getClass());
- for(uint32 i = 0; i < 3; ++i)
+ for(uint8 i = 0; i < 3; ++i)
{
uint32 talentTabId = talentTabIds[i];
@@ -20845,7 +20845,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data)
// find max talent rank
int32 curtalent_maxrank = -1;
- for(uint8 k = 4; k > -1; --k)
+ for(int32 k = 4; k > -1; --k)
{
if(talentInfo->RankID[k] && HasSpell(talentInfo->RankID[k]))
{
@@ -20922,7 +20922,7 @@ void Player::BuildPetTalentsInfoData(WorldPacket *data)
// find max talent rank
int32 curtalent_maxrank = -1;
- for(uint8 k = 4; k > -1; --k)
+ for(int32 k = 4; k > -1; --k)
{
if(talentInfo->RankID[k] && pet->HasSpell(talentInfo->RankID[k]))
{