]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGCommonInput.cxx
fix a pointer reference.
[flightgear.git] / src / Input / FGCommonInput.cxx
index 20fe0e400de62d7e5f7f470a44a66ddae0561b1a..a94537d478a753efa164a3a15589fd0d25d1ba60 100644 (file)
 
 #include <simgear/math/SGMath.hxx>
 
-void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, string & module )
+void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, const string & module )
 {
   SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings");
   vector<SGPropertyNode_ptr> bindings = node->getChildren("binding");
-  string nasal = "nasal";
+  static string nasal = "nasal";
   for (unsigned int i = 0; i < bindings.size(); i++) {
     const char *cmd = bindings[i]->getStringValue("command");
     SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding " << cmd);