From 1fc570f2acbb677b8a04d5c22c13b59bcc898e50 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Wed, 24 Jan 2024 19:14:55 -0600 Subject: [PATCH] Revert "Revert "Revert "Try returning void to suppress MacOS warning""" This reverts commit 3845ddfb7a352fefb9f7b11d37ba1fc95a8ce8d7. --- dGame/UserManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);