1
0
Fork 0

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:
curt 2003-07-23 17:50:45 +00:00
parent 3c41f15f18
commit 6bbc51c058

View file

@ -372,7 +372,7 @@ static FGReplayData interpolate( double time, FGReplayData f1, FGReplayData f2 )
/** /**
* interpolate a specific time from a specific list * 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 // sanity checking
if ( list.size() == 0 ) { if ( list.size() == 0 ) {
// handle empty list // handle empty list