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

The last fix creade a new problem, hopfully this fixes the first and secound problem

parent acbb6540
No related branches found
No related tags found
No related merge requests found
Pipeline #53782 passed
...@@ -341,7 +341,7 @@ Unit Unit::getTarget() const ...@@ -341,7 +341,7 @@ Unit Unit::getTarget() const
CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag; CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag;
// if it doesn't have a target. Return itself // if it doesn't have a target. Return itself
if (m_bot->GetUnit(t_id).isValid()) { if (!this->hasTarget()) {
return *this; 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