mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -686,7 +686,7 @@ public:
|
||||
{
|
||||
uint8 limit = 0;
|
||||
if (player->GetGroup())
|
||||
for (GroupReference* itr = player->GetGroup()->GetFirstMember(); itr != NULL && limit < 4; itr = itr->next(), ++limit)
|
||||
for (GroupReference* itr = player->GetGroup()->GetFirstMember(); itr != nullptr && limit < 4; itr = itr->next(), ++limit)
|
||||
if (Player* groupPlayer = itr->GetSource())
|
||||
if (groupPlayer != player)
|
||||
groupPlayer->GetSession()->SendPacket(&_data);
|
||||
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
me->SetReactState(REACT_DEFENSIVE);
|
||||
|
||||
// Xinef: Inherit Master's Threat List (not yet implemented)
|
||||
//owner->CastSpell((Unit*)NULL, SPELL_MAGE_MASTERS_THREAT_LIST, true);
|
||||
//owner->CastSpell((Unit*)nullptr, SPELL_MAGE_MASTERS_THREAT_LIST, true);
|
||||
HostileReference* ref = owner->getHostileRefManager().getFirst();
|
||||
while (ref)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user