Skip to content
Snippets Groups Projects
Commit 863026a8 authored by David Bergström's avatar David Bergström
Browse files

Merge branch 'master' into 'master'

Fixed debugging Units

See merge request !1
parents 1fbb9529 935ad5ac
No related branches found
No related tags found
1 merge request!1Fixed debugging Units
Pipeline #5388 passed
...@@ -328,7 +328,6 @@ void Unit::ability(sc2::AbilityID ability, const Unit& target) const ...@@ -328,7 +328,6 @@ void Unit::ability(sc2::AbilityID ability, const Unit& target) const
Unit Unit::getTarget() const Unit Unit::getTarget() const
{ {
BOT_ASSERT(isValid(), "Unit is not valid"); BOT_ASSERT(isValid(), "Unit is not valid");
BOT_ASSERT(hasTarget(), "Unit has no target");
// if unit has order, check tag of target of first order // if unit has order, check tag of target of first order
if(getUnitPtr()->orders.size() > 0){ if(getUnitPtr()->orders.size() > 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment