From a205dfdbd29f801f90a9390d8fbbd2fdc72c0d0e Mon Sep 17 00:00:00 2001 From: mik1893 Date: Tue, 19 Jul 2016 21:01:46 +0100 Subject: [PATCH] Fix Linux Compile --- src/server/scripts/Pet/pet_dk.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Pet/pet_dk.cpp b/src/server/scripts/Pet/pet_dk.cpp index ad9184280a..b0ea1e6661 100644 --- a/src/server/scripts/Pet/pet_dk.cpp +++ b/src/server/scripts/Pet/pet_dk.cpp @@ -354,7 +354,7 @@ public: if (!me->IsInCombat()) { - Unit* ownerTarget = nullptr; + Unit* ownerTarget = NULL; if (Player* owner = me->GetCharmerOrOwner()->ToPlayer()) ownerTarget = owner->GetSelectedUnit(); @@ -440,9 +440,9 @@ public: Trinity::UnitListSearcher searcher(me, targets, u_check); me->VisitNearbyObject(40.0f, searcher); - Unit* highestThreatUnit = nullptr; + Unit* highestThreatUnit = NULL; float highestThreat = 0.0f; - Unit* nearestPlayer = nullptr; + Unit* nearestPlayer = NULL; for (std::list::const_iterator iter = targets.begin(); iter != targets.end(); ++iter) { // Consider only units without CC