diff --git a/src/Components/Modules/Bots.cpp b/src/Components/Modules/Bots.cpp index dd503019..354c33bc 100644 --- a/src/Components/Modules/Bots.cpp +++ b/src/Components/Modules/Bots.cpp @@ -48,7 +48,7 @@ namespace Components { "9", Bots::NUM_9 }, }; - void Bots::BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port) + int Bots::BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port) { static int botId = 0; const char* botName; @@ -84,7 +84,7 @@ namespace Components botName = Utils::String::VA("bot%d", ++botId); } - _snprintf_s(buffer, 0x400, _TRUNCATE, connectString, num, botName, protocol, checksum, statVer, statStuff, port); + return _snprintf_s(buffer, 0x400, _TRUNCATE, connectString, num, botName, protocol, checksum, statVer, statStuff, port); } void Bots::Spawn(unsigned int count) diff --git a/src/Components/Modules/Bots.hpp b/src/Components/Modules/Bots.hpp index 7a9e2dde..56473eda 100644 --- a/src/Components/Modules/Bots.hpp +++ b/src/Components/Modules/Bots.hpp @@ -43,7 +43,7 @@ namespace Components private: static std::vector BotNames; - static void BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port); + static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port); static void Spawn(unsigned int count);