diff --git a/src/Unit.cpp b/src/Unit.cpp index d20d062fbec106b034d17c2f6fd53aa179be8d0e..7316c0801d565a1cde4b9f710333fe6e3f27b2f8 100644 --- a/src/Unit.cpp +++ b/src/Unit.cpp @@ -328,9 +328,6 @@ void Unit::ability(sc2::AbilityID ability, const Unit& target) const Unit Unit::getTarget() const { BOT_ASSERT(isValid(), "Unit is not valid"); - if (!hasTarget()){ - return NULL - } // if unit has order, check tag of target of first order if(getUnitPtr()->orders.size() > 0){