Skip to content
Snippets Groups Projects
Commit acbb6540 authored by Rojikku98's avatar Rojikku98
Browse files

Merge branch 'master' of gitlab.liu.se:edvbe696/pycommandcenter

parents 990d4042 8478607a
No related branches found
No related tags found
No related merge requests found
......@@ -341,7 +341,7 @@ Unit Unit::getTarget() const
CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag;
// if it doesn't have a target. Return itself
if (m_bot->GetUnit(t_id) == nullptr) {
if (m_bot->GetUnit(t_id).isValid()) {
return *this;
}
......
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