Skip to content

Commit

Permalink
Fixed std::stransform, let's test it
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Aug 18, 2023
1 parent 3c1db61 commit 3474fbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LogApi/LogUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ CBasePlayer* CLogUtil::FindPlayer(std::string Target)

if (!Find.empty())
{
std::transform(Find.begin(), Find.end(), Find.begin(), std::tolower);
std::transform(Find.begin(), Find.end(), Find.begin(), [](unsigned char character)
{
return std::tolower(character);
});

if (Find.find(Target) != std::string::npos)
{
Expand Down

0 comments on commit 3474fbc

Please sign in to comment.