From f278d151d6bb5ab6006513bf86ea9a1ced29b19a Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 24 Jun 2022 22:48:54 +0300 Subject: [PATCH] Update Player.cpp --- module/Misc/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Misc/Player.cpp b/module/Misc/Player.cpp index 7e2c8358..1ec10a37 100644 --- a/module/Misc/Player.cpp +++ b/module/Misc/Player.cpp @@ -113,8 +113,8 @@ int32_t GetSkinID(StackStrF & name) { // Clone the string into an editable version String str(name.mPtr, static_cast< size_t >(name.mLen)); - // Strip non alphanumeric characters from the name - str.erase(std::remove_if(str.begin(), str.end(), std::not1(std::ptr_fun(::isalnum))), str.end()); + // Strip non-alphanumeric characters from the name + str.erase(std::remove_if(str.begin(), str.end(), std::function(::isalnum)), str.end()); // Convert the string to lowercase std::transform(str.begin(), str.end(), str.begin(), ::tolower); // See if we still have a valid name after the cleanup