nearest corpses

This commit is contained in:
Yunfan Li
2023-08-28 17:27:15 +08:00
parent c437e99f90
commit 953f09364a

View File

@@ -15,7 +15,7 @@ class AnyDeadUnitInObjectRangeCheck
WorldObject const& GetFocusObject() const { return *i_obj; }
bool operator()(Unit* u)
{
return !u->IsAlive() && i_obj->IsWithinDistInMap(u, i_range);
return !u->IsAlive();
}
private: