]> git.mxchange.org Git - flightgear.git/commitdiff
MSVC fix.
authorehofman <ehofman>
Wed, 20 Oct 2004 08:12:55 +0000 (08:12 +0000)
committerehofman <ehofman>
Wed, 20 Oct 2004 08:12:55 +0000 (08:12 +0000)
src/Instrumentation/altimeter.cxx

index 39a0c105dce9c26a611138c8f0051429f4ca597c..86190d25379f252be182609fb929f906877ae050 100644 (file)
@@ -51,11 +51,10 @@ Altimeter::Altimeter ( SGPropertyNode *node )
       num(0),
       static_port("/systems/static")
 {
-
-    for (int i = 0; altitude_data[i][0] != -1; i++)
+    int i;
+    for (i = 0; altitude_data[i][0] != -1; i++)
         _altitude_table->addEntry(altitude_data[i][0], altitude_data[i][1]);
 
-    int i;
     for ( i = 0; i < node->nChildren(); ++i ) {
         SGPropertyNode *child = node->getChild(i);
         string cname = child->getName();