From 49b42a171a2ed9e41357efaf4aa7c76c0f5ba9c6 Mon Sep 17 00:00:00 2001 From: torsten Date: Wed, 3 Jun 2009 22:18:58 +0000 Subject: [PATCH] that cleanup code was not working --- src/Environment/environment_ctrl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Environment/environment_ctrl.cxx b/src/Environment/environment_ctrl.cxx index 8e3f908e7..83cc43b35 100644 --- a/src/Environment/environment_ctrl.cxx +++ b/src/Environment/environment_ctrl.cxx @@ -170,9 +170,8 @@ FGInterpolateEnvironmentCtrl::read_table (const SGPropertyNode * node, vector::iterator it = table.begin() + i; - while( it != table.end() ) - table.erase( it ); + while( table.size() > i ) + table.pop_back(); if( sort_required ) sort(table.begin(), table.end(), bucket::lessThan); -- 2.39.5