]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/static.cxx
#545: Fix ATC chatter sound settings being ignored
[flightgear.git] / src / Systems / static.cxx
index d3cbbbf361d7090053355cdb91603f607179bd7d..e8447121c14caf51946e97acbb96fefe7a60d4b6 100644 (file)
@@ -3,7 +3,14 @@
 //
 // This file is in the Public Domain and comes with no warranty.
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include "static.hxx"
+
+#include <string>
+
 #include <Main/fg_props.hxx>
 #include <Main/util.hxx>
 
@@ -24,8 +31,7 @@ StaticSystem::~StaticSystem ()
 void
 StaticSystem::init ()
 {
-    string branch;
-    branch = "/systems/" + _name;
+    std::string branch = "/systems/" + _name;
 
     SGPropertyNode *node = fgGetNode(branch.c_str(), _num, true );
     _serviceable_node = node->getChild("serviceable", 0, true);