mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -443,7 +443,7 @@ void PetAI::OwnerAttacked(Unit* target)
|
||||
// Called when owner attacks something. Allows defensive pets to know
|
||||
// that they need to assist
|
||||
|
||||
// Target might be NULL if called from spell with invalid cast targets
|
||||
// Target might be nullptr if called from spell with invalid cast targets
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ void UnitAI::DoCastAOE(uint32 spellId, bool triggered)
|
||||
if (!triggered && me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
me->CastSpell((Unit*)NULL, spellId, triggered);
|
||||
me->CastSpell((Unit*)nullptr, spellId, triggered);
|
||||
}
|
||||
|
||||
#define UPDATE_TARGET(a) {if (AIInfo->target<a) AIInfo->target=a;}
|
||||
|
||||
Reference in New Issue
Block a user