1
0
Fork 0

Reset: AI shutdown unbinds AIbase instances.

This commit is contained in:
James Turner 2013-10-06 17:34:35 +01:00
parent 71a8eac8bd
commit e62a4f502a

View file

@ -175,6 +175,12 @@ void
FGAIManager::shutdown() FGAIManager::shutdown()
{ {
unloadAllScenarios(); unloadAllScenarios();
BOOST_FOREACH(FGAIBase* ai, ai_list) {
ai->unbind();
}
ai_list.clear();
} }
void void