Fix an oversight/inefficiency spotted by Frederic Bouvier. We were passing a
*copy* of a very large data set to a function.
This commit is contained in:
parent
3c41f15f18
commit
6bbc51c058
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ static FGReplayData interpolate( double time, FGReplayData f1, FGReplayData f2 )
|
|||
/**
|
||||
* interpolate a specific time from a specific list
|
||||
*/
|
||||
static void interpolate( double time, replay_list_type list ) {
|
||||
static void interpolate( double time, const replay_list_type &list ) {
|
||||
// sanity checking
|
||||
if ( list.size() == 0 ) {
|
||||
// handle empty list
|
||||
|
|
Loading…
Add table
Reference in a new issue