diff --git a/dGame/UserManager.cpp b/dGame/UserManager.cpp index bd76a065f..fc5821089 100644 --- a/dGame/UserManager.cpp +++ b/dGame/UserManager.cpp @@ -451,13 +451,13 @@ void UserManager::RenameCharacter(const SystemAddress& sysAddr, Packet* packet) "User %i tried to rename a character that it does not own!", u->GetAccountID()); - static_cast(std::find_if(u->GetCharacters().begin(), u->GetCharacters().end(), [&](Character* c) { + std::find_if(u->GetCharacters().begin(), u->GetCharacters().end(), [&](Character* c) { if (c->GetID() == charID) { character = c; return true; } return false; - })); + }); if (!ownsCharacter || !character) { WorldPackets::SendCharacterRenameResponse(sysAddr, eRenameResponse::UNKNOWN_ERROR);