Don't use AIForce's GoalPos after calling ReturnToHome()

This commit is contained in:
Daniel Hartl 2018-06-10 22:25:10 -07:00
parent 47d35617ad
commit 2e54a8985b

View file

@ -1083,6 +1083,12 @@ void AiForceManager::Update()
}
}
}
if (force.Defending == false) {
// force is no longer defending
return;
}
// Find idle units and order them to defend
// Don't attack if there aren't our units near goal point
std::vector<CUnit *> nearGoal;