Fixed finding entities finding themselves when targeting their type
This commit is contained in:
parent
2d8b1e53ce
commit
8199b7d036
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ pro_maat::GridPos Rule::findTarget()
|
||||||
|
|
||||||
for(const auto& processingEntity : sortedEntities)
|
for(const auto& processingEntity : sortedEntities)
|
||||||
{
|
{
|
||||||
if(processingEntity->getType() != targetType) continue;
|
if(processingEntity->getType() != targetType || processingEntity->getPosition() == entity->getPosition()) continue;
|
||||||
|
|
||||||
std::vector<pro_maat::GridPos> potentialTargets{};
|
std::vector<pro_maat::GridPos> potentialTargets{};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue