Skip to content

Commit

Permalink
Merge pull request #4 from whohyno/main
Browse files Browse the repository at this point in the history
Fixed conversion from 'size_t' to 'int', possible loss of data Warning
  • Loading branch information
Viceroyy authored Aug 4, 2024
2 parents f27685f + 9e719b9 commit 75613fe
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 75613fe

Please sign in to comment.