From 9e719b97a59f396c53838dacfdbe2fcd65aa17d6 Mon Sep 17 00:00:00 2001 From: whohyno <90461313+whohyno@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:08:08 +0300 Subject: [PATCH] Fixed conversion from 'size_t' to 'int', possible loss of data Warning --- Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp b/Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp index 52c01be..584b65f 100644 --- a/Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp +++ b/Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp @@ -31,7 +31,7 @@ std::string owoify(std::string text) if (text.size() < 124) { - int suffix{ I::UniformRandomStream->RandomInt(0, suffixes.size() - 1) }; + int suffix{ I::UniformRandomStream->RandomInt(0, static_cast(suffixes.size() - 1)) }; text += suffixes[suffix]; } @@ -93,4 +93,4 @@ MAKE_HOOK(EngineClient_ClientCmd_Unrestricted, U::Memory.GetVFunc(I::EngineClien } CALL_ORIGINAL(ecx, cmdString.c_str()); -} \ No newline at end of file +}