From 12a81eb5f706c1034b3ba0f4cb14f5e9bab05ed8 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Fri, 28 Jan 2022 11:28:52 +0000 Subject: [PATCH] Fix return type of stub --- src/Components/Modules/Bots.cpp | 4 ++-- src/Components/Modules/Bots.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);