fix(bots): rename parameter

This commit is contained in:
FutureRave 2023-02-16 22:32:05 +00:00
parent 9c428ee187
commit 5b387622f4

View File

@ -90,11 +90,11 @@ namespace bots
int format_bot_string(char* buffer, [[maybe_unused]] const char* format, const char* name, const char* xuid, int format_bot_string(char* buffer, [[maybe_unused]] const char* format, const char* name, const char* xuid,
const char* xnaddr, int protocol, int netfieldchk, const char* session_mode, int qport) const char* xnaddr, int protocol, int netfieldchk, const char* session_mode, int qport)
{ {
const auto find_name = [](const std::string& name) -> const char* const auto find_name = [](const std::string& needle) -> const char*
{ {
for (const auto& entry : get_bot_names()) for (const auto& entry : get_bot_names())
{ {
if (entry.first == name) if (entry.first == needle)
{ {
return entry.second.data(); return entry.second.data();
} }