From 62a1e135c3795ce461eed599d69a03015fee6996 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:25:06 -0800 Subject: [PATCH] Fix backwards name check (#1327) Untested. Fixes not being able to rename a character at character create --- dGame/UserManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());