From 3845ddfb7a352fefb9f7b11d37ba1fc95a8ce8d7 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Wed, 24 Jan 2024 19:14:28 -0600 Subject: [PATCH] Revert "Revert "Try returning void to suppress MacOS warning"" This reverts commit 4ff581274bc41994b0d6950266b3a24912d64310. --- dGame/UserManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dGame/UserManager.cpp b/dGame/UserManager.cpp index fc5821089..bd76a065f 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()); - std::find_if(u->GetCharacters().begin(), u->GetCharacters().end(), [&](Character* c) { + static_cast(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);