From ff393423f5859fff80d2cd92fb71dda7a0357300 Mon Sep 17 00:00:00 2001 From: Gee Date: Sat, 27 Dec 2003 07:24:41 +0000 Subject: [PATCH] just moved the variable declaration out of the for loops when the same was used twice. vc6 doesn't like it since it doesn't scope the for-header. This was SVN commit r145. --- source/terrain/Patch.cpp | 6 ++++-- source/terrain/Renderer.cpp | 8 +++++--- source/terrain/Terrain.cpp | 6 ++++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/source/terrain/Patch.cpp b/source/terrain/Patch.cpp index e8fe809690..54f2f4319f 100755 --- a/source/terrain/Patch.cpp +++ b/source/terrain/Patch.cpp @@ -25,11 +25,13 @@ CPatch::~CPatch () //Initialize the patch void CPatch::Initialize (STerrainVertex *first_vertex) { + int j; + m_pVertices = first_vertex; m_Bounds.SetEmpty(); - for (int j=0; j