Skip to content

Commit

Permalink
Revert "Try returning void to suppress MacOS warning"
Browse files Browse the repository at this point in the history
This reverts commit 8489149.
  • Loading branch information
jadebenn committed Jan 24, 2024
1 parent 8b2e145 commit 4ff5812
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());

static_cast<void>(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);
Expand Down

0 comments on commit 4ff5812

Please sign in to comment.