Skip to content
Snippets Groups Projects

Fixed debugging Units

Merged Erik Ahlroth requested to merge eriah592/pycommandcenter:master into master
1 file
+ 0
1
Compare changes
  • Side-by-side
  • Inline
+ 0
1
@@ -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){
Loading