Skip to content

Commit

Permalink
Fixed conversion from 'size_t' to 'int', possible loss of data Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
whohyno authored Aug 4, 2024
1 parent 4f6d0ef commit 9e719b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fusion/src/Hooks/EngineClient_ClientCmd_Unrestricted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(suffixes.size() - 1)) };

text += suffixes[suffix];
}
Expand Down Expand Up @@ -93,4 +93,4 @@ MAKE_HOOK(EngineClient_ClientCmd_Unrestricted, U::Memory.GetVFunc(I::EngineClien
}

CALL_ORIGINAL(ecx, cmdString.c_str());
}
}

0 comments on commit 9e719b9

Please sign in to comment.