mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
chore(Core/Misc): nullptr cleanup (#11467)
This commit is contained in:
@@ -178,7 +178,7 @@ WorldSession::~WorldSession()
|
||||
|
||||
std::string const& WorldSession::GetPlayerName() const
|
||||
{
|
||||
return _player != nullptr ? _player->GetName() : DefaultPlayerName;
|
||||
return _player ? _player->GetName() : DefaultPlayerName;
|
||||
}
|
||||
|
||||
std::string WorldSession::GetPlayerInfo() const
|
||||
|
||||
Reference in New Issue
Block a user