Skip to content
Snippets Groups Projects
Commit 8478607a authored by Edvin Bergström's avatar Edvin Bergström
Browse files

Fix the crash on linux

parent cfee4d1f
No related branches found
No related tags found
No related merge requests found
Pipeline #53553 passed
......@@ -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