Fix return type of stub

This commit is contained in:
FutureRave 2022-01-28 11:28:52 +00:00
parent 35114e454c
commit 12a81eb5f7
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ namespace Components
{ "9", Bots::NUM_9 }, { "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; static int botId = 0;
const char* botName; const char* botName;
@ -84,7 +84,7 @@ namespace Components
botName = Utils::String::VA("bot%d", ++botId); 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) void Bots::Spawn(unsigned int count)

View File

@ -43,7 +43,7 @@ namespace Components
private: private:
static std::vector<std::string> BotNames; static std::vector<std::string> 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); static void Spawn(unsigned int count);