Skip to content

Commit

Permalink
Fix previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Jul 25, 2024
1 parent 1385846 commit 07d959f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Anticheat/WardenAnticheat/Warden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ void Warden::HandlePacket(WorldPacket& recvData)
uint32 checksum;
recvData >> length >> checksum;

if (length > (recvData.size() - (recvData.rpos() + 1)))
if (length > (recvData.size() - recvData.rpos()))
{
recvData.rpos(recvData.wpos());
ApplyPenalty("wrong checksum length", WARDEN_ACTION_KICK);
Expand Down

0 comments on commit 07d959f

Please sign in to comment.