From 7f908163cadc1ef9ab2547c2cdcbff0ef1b7aff3 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 17 Apr 2023 21:17:58 +0200 Subject: [PATCH] Small cleanup --- src/client/component/auth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/auth.cpp b/src/client/component/auth.cpp index 59228b5d..1457ee8e 100644 --- a/src/client/component/auth.cpp +++ b/src/client/component/auth.cpp @@ -165,7 +165,7 @@ namespace auth buffer.write(static_cast(player_index)); buffer.write(xuid); - game::foreach_connected_client([&](const game::client_s& client, size_t index) + game::foreach_connected_client([&](const game::client_s& client, const size_t index) { if (client.address.type != game::NA_BOT) { @@ -195,7 +195,7 @@ namespace auth const auto xuid = strtoull(info_string.get("xuid").data(), nullptr, 16); size_t player_index = 18; - game::foreach_connected_client([&](game::client_s& client, size_t index) + game::foreach_connected_client([&](game::client_s& client, const size_t index) { if (client.address == target) {