Skip to content
Snippets Groups Projects
Commit 916fc11d authored by Sopi Abaied's avatar Sopi Abaied :alien:
Browse files

getTarget() returns self if no target!

parent 71619ac7
No related branches found
No related tags found
No related merge requests found
......@@ -305,12 +305,12 @@ Unit Unit::getTarget() const
//if unit has order, check tag of target of first order
if(getUnitPtr()->orders.size() > 0){
//pray that this value can be declared as CCUnitID
CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag;
CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag;
//let IDAbot find the unit with this tag
return m_bot->GetUnit(t_id);
}
}
return;
return m_unit;
}
bool Unit::isBlip() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment