Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Server/PacketIO: fix iteration variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
AriDEV3 committed Jan 14, 2024
1 parent 697cdee commit a26f5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Handlers/BattlePetHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void WorldSession::HandleBattlePetWildRequest(WorldPacket& recvData)
data2.WriteBits(0, 21);

uint8 abilityCount = 0;
for (uint8 i = 0; i < 3; i++)
for (uint8 k = 0; k < 3; k++)
abilityCount++;

data2.WriteBit(petEntry[0]);
Expand All @@ -548,7 +548,7 @@ void WorldSession::HandleBattlePetWildRequest(WorldPacket& recvData)
data2.WriteBits(0, 7); // name size
data2.WriteGuidMask(petEntry, 2, 4);

for (uint8 i = 0; i < 3; i++)
for (uint8 l = 0; l < 3; l++)
data2.WriteBit(0);

data2.WriteGuidMask(petEntry, 6, 7);
Expand Down

0 comments on commit a26f5f8

Please sign in to comment.