Skip to content

Commit

Permalink
fix 3fadd9f
Browse files Browse the repository at this point in the history
  • Loading branch information
software-eugeneer authored and killerwife committed Aug 17, 2024
1 parent 7df7ece commit 431adc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Anticheat/module/Warden/warden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,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());
_anticheat->RecordCheatInternal(CheatType::CHEAT_TYPE_WARDEN, "Packet checksum length fail");
Expand Down

0 comments on commit 431adc5

Please sign in to comment.