diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index bc1d7f6..7407030 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -424,7 +424,7 @@ void AnticheatMgr::ClimbHackDetection(Player* player, MovementInfo movementInfo, Position playerPos = player->GetPosition(); float deltaZ = fabs(playerPos.GetPositionZ() - movementInfo.pos.GetPositionZ()); - float deltaXY = movementInfo.pos.GetExactDist2d(m_Players[key].GetLastMovementInfo().pos); + float deltaXY = movementInfo.pos.GetExactDist2d(&playerPos); float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));