Skip to content

Commit

Permalink
Revert "Revert "Try returning void to suppress MacOS warning""
Browse files Browse the repository at this point in the history
This reverts commit 4ff5812.
  • Loading branch information
jadebenn committed Jan 25, 2024
1 parent 55e1e95 commit 3845ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dGame/UserManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>(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);
Expand Down

0 comments on commit 3845ddf

Please sign in to comment.