prevent garbage value loaded as value in LogGroup::getValueAtTime

This commit is contained in:
Scott Fennell 2018-09-27 14:32:35 -05:00
parent 8315f95a8c
commit 2f328f6697

View File

@ -1312,8 +1312,11 @@ int LogGroup::getValueAtTime( const char *paramName,
// Get the value at time
rr = log[yLogIdx]->getValueAtTime(tIdx, time,
yIdx, &vv) ;
*value = vv ;
// If value with timestamp found
if(rr > 0){
*value = vv ;
}
return(rr);
}