diff --git a/src/Components/Modules/Bots.cpp b/src/Components/Modules/Bots.cpp index 70fc6efe..dcb26b50 100644 --- a/src/Components/Modules/Bots.cpp +++ b/src/Components/Modules/Bots.cpp @@ -16,7 +16,7 @@ namespace Components const Game::dvar_t* Bots::sv_randomBotNames; const Game::dvar_t* Bots::sv_replaceBots; - std::size_t Bots::botDataIndex; + std::size_t Bots::BotDataIndex; struct BotMovementInfo { @@ -121,8 +121,8 @@ namespace Components if (!botNames.empty()) { - botDataIndex %= botNames.size(); - const auto index = botDataIndex++; + BotDataIndex %= botNames.size(); + const auto index = BotDataIndex++; botName = botNames[index].first; clanName = botNames[index].second; } diff --git a/src/Components/Modules/Bots.hpp b/src/Components/Modules/Bots.hpp index b7cf2315..c97b2d26 100644 --- a/src/Components/Modules/Bots.hpp +++ b/src/Components/Modules/Bots.hpp @@ -15,7 +15,7 @@ namespace Components static const Game::dvar_t* sv_randomBotNames; static const Game::dvar_t* sv_replaceBots; - static std::size_t botDataIndex; + static std::size_t BotDataIndex; static std::vector LoadBotNames(); static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);