Skip to content
Snippets Groups Projects

Fixed debugging Units

Merged Erik Ahlroth requested to merge eriah592/pycommandcenter:master into master
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
  • fe75150f
    Updated Unit.cpp. · fe75150f
    Erik Ahlroth authored
    *Removed ensuring there is a target in getTarget(), which solves a crash when debugging during runtime
+ 0
3
@@ -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){
Loading