From e2ce033a8cef3f468dfde9ec27dbf4f8ab984db6 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 20 Oct 2004 08:12:55 +0000 Subject: [PATCH] MSVC fix. --- src/Instrumentation/altimeter.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Instrumentation/altimeter.cxx b/src/Instrumentation/altimeter.cxx index 39a0c105d..86190d253 100644 --- a/src/Instrumentation/altimeter.cxx +++ b/src/Instrumentation/altimeter.cxx @@ -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();