1
0
Fork 0

that cleanup code was not working

This commit is contained in:
torsten 2009-06-03 22:18:58 +00:00 committed by Tim Moore
parent 0c3dc88652
commit 49b42a171a

View file

@ -170,9 +170,8 @@ FGInterpolateEnvironmentCtrl::read_table (const SGPropertyNode * node, vector<bu
}
}
// remove leftover buckets
vector<bucket*>::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);