that cleanup code was not working
This commit is contained in:
parent
0c3dc88652
commit
49b42a171a
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue