From 477b629fafc756f68e514b4d1efac472dc52ebdb Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Tue, 25 Jan 2022 00:14:21 +0100 Subject: [PATCH] Fix UserManager not logging chosen name properly --- dGame/UserManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/UserManager.cpp b/dGame/UserManager.cpp index 1535364c..770dfdf2 100644 --- a/dGame/UserManager.cpp +++ b/dGame/UserManager.cpp @@ -270,7 +270,7 @@ void UserManager::CreateCharacter(const SystemAddress& sysAddr, Packet* packet) return; } - Game::logger->Log("UserManager", "AccountID: %i is creating a character with name: %s\n", u->GetAccountID(), name.c_str()); + Game::logger->Log("UserManager", "AccountID: %i is creating a character with name: %s\n", u->GetAccountID(), name != "" ? name.c_str() : predefinedName.c_str()); //Now that the name is ok, we can get an objectID from Master: ObjectIDManager::Instance()->RequestPersistentID([=](uint32_t objectID) {