From ab59703e545cd0b7e5ceed56333d4cc282411626 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Oct 2002 11:39:04 +0000 Subject: [PATCH] Fixed compile error under Windows. --- src/osgPlugins/flt/flt2osg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 599e5a4b7..1fdf40a52 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -1470,7 +1470,8 @@ int ConvertFromFLT::visitVertexList(GeoSetBuilder* pBuilder, VertexListRecord* r int vertices = rec->numberOfVertices(); // Add vertices to GeoSetBuilder - for (int i=0; i < vertices; i++) + int i; + for (i=0; i < vertices; i++) { Record* vertex = getVertexFromPool(rec->getVertexPoolOffset(i)); if (vertex) @@ -1478,7 +1479,7 @@ int ConvertFromFLT::visitVertexList(GeoSetBuilder* pBuilder, VertexListRecord* r } // Visit ancillary records - for(int i=0; i < rec->getNumChildren(); i++) + for(i=0; i < rec->getNumChildren(); i++) { Record* child = rec->getChild(i); CERR << "OPCODE: " << child->getOpcode() << "\n";