diff options
author | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
commit | a4dafbf8ec26fa33ce51140bb77b0b1a68df93ff (patch) | |
tree | 5850e3965f0eabb6a17433fa5737d807bad84406 /src/game/PetHandler.cpp | |
parent | 1f871af996eb837d7a191fb947bcf565f4592c1c (diff) |
* More updating of iterator data types in loops
--HG--
branch : trunk
Diffstat (limited to 'src/game/PetHandler.cpp')
-rw-r--r-- | src/game/PetHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index d03aa7af7c4..3960b59d6d4 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -334,7 +334,7 @@ void WorldSession::SendPetNameQuery( uint64 petguid, uint32 petnumber) if( pet->isPet() && ((Pet*)pet)->GetDeclinedNames() ) { data << uint8(1); - for(int i = 0; i < MAX_DECLINED_NAME_CASES; ++i) + for(uint8 i = 0; i < MAX_DECLINED_NAME_CASES; ++i) data << ((Pet*)pet)->GetDeclinedNames()->name[i]; } else @@ -457,7 +457,7 @@ void WorldSession::HandlePetRename( WorldPacket & recv_data ) if(isdeclined) { - for(int i = 0; i < MAX_DECLINED_NAME_CASES; ++i) + for(uint8 i = 0; i < MAX_DECLINED_NAME_CASES; ++i) { CHECK_PACKET_SIZE(recv_data, recv_data.rpos() + 1); recv_data >> declinedname.name[i]; @@ -475,7 +475,7 @@ void WorldSession::HandlePetRename( WorldPacket & recv_data ) CharacterDatabase.BeginTransaction(); if(isdeclined) { - for(int i = 0; i < MAX_DECLINED_NAME_CASES; ++i) + for(uint8 i = 0; i < MAX_DECLINED_NAME_CASES; ++i) CharacterDatabase.escape_string(declinedname.name[i]); CharacterDatabase.PExecute("DELETE FROM character_pet_declinedname WHERE owner = '%u' AND id = '%u'", _player->GetGUIDLow(), pet->GetCharmInfo()->GetPetNumber()); CharacterDatabase.PExecute("INSERT INTO character_pet_declinedname (id, owner, genitive, dative, accusative, instrumental, prepositional) VALUES ('%u','%u','%s','%s','%s','%s','%s')", |