]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/autopilot.cxx
Fix bug 191, uninitialised HUD color.
[flightgear.git] / src / Autopilot / autopilot.cxx
index 089789d6715bc3a2e886a4979f26dac499c40cbb..e8bb91b02bc857bf090267e962e67e2dc8d8f135 100644 (file)
@@ -97,7 +97,7 @@ void Autopilot::add_component( Component * component )
   std::string name = component->get_name();
   for( unsigned i = 0; get_subsystem( name.c_str() ) != NULL; i++ ) {
       ostringstream buf;
-      buf <<  name << "_" << i;
+      buf <<  component->get_name() << "_" << i;
       name = buf.str();
   }
   if( name != component->get_name() )