Reset: AI shutdown unbinds AIbase instances.
This commit is contained in:
parent
71a8eac8bd
commit
e62a4f502a
1 changed files with 6 additions and 0 deletions
|
@ -175,6 +175,12 @@ void
|
||||||
FGAIManager::shutdown()
|
FGAIManager::shutdown()
|
||||||
{
|
{
|
||||||
unloadAllScenarios();
|
unloadAllScenarios();
|
||||||
|
|
||||||
|
BOOST_FOREACH(FGAIBase* ai, ai_list) {
|
||||||
|
ai->unbind();
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_list.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue