diff --git a/src/Components/Modules/Stats.cpp b/src/Components/Modules/Stats.cpp index b2e8db16..9472a1d0 100644 --- a/src/Components/Modules/Stats.cpp +++ b/src/Components/Modules/Stats.cpp @@ -65,7 +65,7 @@ namespace Components SendStats(); } - int Stats::SaveStats(char* dest, const char* folder, const char* buffer, size_t length) + int Stats::SaveStats(char* dest, const char* folder, const char* buffer, int size) { assert(*Game::fs_gameDirVar); @@ -74,7 +74,7 @@ namespace Components folder = (*Game::fs_gameDirVar)->current.string; } - return Utils::Hook::Call(0x426450)(dest, folder, buffer, length); + return Utils::Hook::Call(0x426450)(dest, folder, buffer, size); } void Stats::AddScriptFunctions() diff --git a/src/Components/Modules/Stats.hpp b/src/Components/Modules/Stats.hpp index bee2ebce..63334841 100644 --- a/src/Components/Modules/Stats.hpp +++ b/src/Components/Modules/Stats.hpp @@ -13,7 +13,7 @@ namespace Components static void UpdateClasses([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info); static void SendStats(); - static int SaveStats(char* dest, const char* folder, const char* buffer, size_t length); + static int SaveStats(char* dest, const char* folder, const char* buffer, int size); static std::int64_t* GetStatsID();