diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index 466f5332a..68f60474e 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -57,7 +57,7 @@ void FGAIManager::init() { int rval; root = fgGetNode("sim/ai", true); - enabled = root->getNode("enabled", true)->getStringValue(); + enabled = root->getNode("enabled", true)->getBoolValue(); if (!enabled) return;