Skip to content
Snippets Groups Projects
Commit 935ad5ac authored by Erik Ahlroth's avatar Erik Ahlroth :bug: Committed by David Bergström
Browse files

Updated Unit.cpp.

*Removed ensuring there is a target in getTarget(), which solves a crash when debugging during runtime
parent 1fbb9529
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,6 @@ void Unit::ability(sc2::AbilityID ability, const Unit& target) const
Unit Unit::getTarget() const
{
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(getUnitPtr()->orders.size() > 0){
......
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