Skip to content

Commit

Permalink
3rd try
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn authored Jan 23, 2024
1 parent b4cfbe4 commit 0c4fa4f
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());

void jtr = 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 0c4fa4f

Please sign in to comment.