Skip to content
Snippets Groups Projects
Commit de589be2 authored by Sopi (sofab194)'s avatar Sopi (sofab194)
Browse files

getTarget() returns empty unit on not found

Changed getTarget() in Unit.cpp to return Unit() if no target found
parent 916fc11d
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ Unit Unit::getTarget() const
return m_bot->GetUnit(t_id);
}
return m_unit;
return 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