From ad506ba7cd8d053c311d61002b5c51331c25a39f Mon Sep 17 00:00:00 2001 From: brightrim Date: Sat, 5 Oct 2024 13:25:46 +0200 Subject: [PATCH] Typo --- src/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.cpp b/src/Player.cpp index b25d06d4..ac4fc3aa 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -1632,7 +1632,7 @@ void Player::introducePlayer(Player *player) { void Player::namePlayer(TYPE_OF_CHARACTER_ID playerId, const std::string &name) { const Character *character = World::get()->findCharacter(playerId); - if (character != nullptr) { + if (character == nullptr) { Logger::error(LogFacility::Player) << to_string() << " tried to name another player that already logged off." << Log::end;