mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -340,7 +340,7 @@ void WorldSession::HandleSetChannelWatch(WorldPacket& recvPacket)
|
||||
return;
|
||||
|
||||
if (ChannelMgr* cMgr = ChannelMgr::forTeam(GetPlayer()->GetTeamId()))
|
||||
if (Channel* channel = cMgr->GetChannel(channelName, NULL, false))
|
||||
if (Channel* channel = cMgr->GetChannel(channelName, nullptr, false))
|
||||
channel->AddWatching(GetPlayer());
|
||||
}
|
||||
|
||||
@@ -353,6 +353,6 @@ void WorldSession::HandleClearChannelWatch(WorldPacket& recvPacket)
|
||||
return;
|
||||
|
||||
if (ChannelMgr* cMgr = ChannelMgr::forTeam(GetPlayer()->GetTeamId()))
|
||||
if (Channel* channel = cMgr->GetChannel(channelName, NULL, false))
|
||||
if (Channel* channel = cMgr->GetChannel(channelName, nullptr, false))
|
||||
channel->RemoveWatching(GetPlayer());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user