mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -570,7 +570,7 @@ namespace lfg
|
||||
else
|
||||
{
|
||||
uint8 memberCount = 0;
|
||||
for (GroupReference* itr = grp->GetFirstMember(); itr != NULL && joinData.result == LFG_JOIN_OK; itr = itr->next())
|
||||
for (GroupReference* itr = grp->GetFirstMember(); itr != nullptr && joinData.result == LFG_JOIN_OK; itr = itr->next())
|
||||
{
|
||||
if (Player* plrg = itr->GetSource())
|
||||
{
|
||||
@@ -598,7 +598,7 @@ namespace lfg
|
||||
joinData.result = LFG_JOIN_RANDOM_COOLDOWN;
|
||||
else if (grp)
|
||||
{
|
||||
for (GroupReference* itr = grp->GetFirstMember(); itr != NULL && joinData.result == LFG_JOIN_OK; itr = itr->next())
|
||||
for (GroupReference* itr = grp->GetFirstMember(); itr != nullptr && joinData.result == LFG_JOIN_OK; itr = itr->next())
|
||||
if (Player* plrg = itr->GetSource())
|
||||
if (plrg->HasAura(LFG_SPELL_DUNGEON_COOLDOWN)) // xinef: added !isContinue
|
||||
joinData.result = LFG_JOIN_PARTY_RANDOM_COOLDOWN;
|
||||
@@ -733,7 +733,7 @@ namespace lfg
|
||||
|
||||
/**
|
||||
Leaves Dungeon System. Player/Group is removed from queue, rolechecks, proposals
|
||||
or votekicks. Player or group needs to be not NULL and using Dungeon System
|
||||
or votekicks. Player or group needs to be not nullptr and using Dungeon System
|
||||
|
||||
@param[in] guid Player or group guid
|
||||
*/
|
||||
@@ -2085,7 +2085,7 @@ namespace lfg
|
||||
|
||||
// if we can take the quest, means that we haven't done this kind of "run", IE: First Heroic Random of Day.
|
||||
if (player->CanRewardQuest(quest, false))
|
||||
player->RewardQuest(quest, 0, NULL, false);
|
||||
player->RewardQuest(quest, 0, nullptr, false);
|
||||
else
|
||||
{
|
||||
done = true;
|
||||
@@ -2093,7 +2093,7 @@ namespace lfg
|
||||
if (!quest)
|
||||
continue;
|
||||
// we give reward without informing client (retail does this)
|
||||
player->RewardQuest(quest, 0, NULL, false);
|
||||
player->RewardQuest(quest, 0, nullptr, false);
|
||||
}
|
||||
|
||||
// Give rewards
|
||||
|
||||
Reference in New Issue
Block a user