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