Don't use AIForce's GoalPos after calling ReturnToHome()
This commit is contained in:
parent
47d35617ad
commit
2e54a8985b
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue