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
|
// remove leftover buckets
|
||||||
vector<bucket*>::iterator it = table.begin() + i;
|
while( table.size() > i )
|
||||||
while( it != table.end() )
|
table.pop_back();
|
||||||
table.erase( it );
|
|
||||||
|
|
||||||
if( sort_required )
|
if( sort_required )
|
||||||
sort(table.begin(), table.end(), bucket::lessThan);
|
sort(table.begin(), table.end(), bucket::lessThan);
|
||||||
|
|
Loading…
Add table
Reference in a new issue