diff --git a/dGame/UserManager.cpp b/dGame/UserManager.cpp index 8a58ac69..323bf29a 100644 --- a/dGame/UserManager.cpp +++ b/dGame/UserManager.cpp @@ -405,7 +405,7 @@ void UserManager::RenameCharacter(const SystemAddress& sysAddr, Packet* packet) return; } - if (Database::Get()->GetCharacterInfo(newName)) { + if (!Database::Get()->GetCharacterInfo(newName)) { if (IsNamePreapproved(newName)) { Database::Get()->SetCharacterName(charID, newName); LOG("Character %s now known as %s", character->GetName().c_str(), newName.c_str());