]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props_io.cxx
Frederic Bouvier:
[simgear.git] / simgear / props / props_io.cxx
index d6b38c62d51199d43012f39f35f5dbcdd80b093a..997ac971d3918f3e23c1279a0a6d848fa4947497 100644 (file)
@@ -133,7 +133,6 @@ checkFlag (const char * flag, bool defaultState = true)
 void
 PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
 {
-  State &st = state();
   const char * attval;
 
   if (_level == 0) {
@@ -160,6 +159,7 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
   }
 
   else {
+    State &st = state();
                                // Get the index.
     attval = atts.getValue("n");
     int index = 0;