Last time should never be zero.

This commit is contained in:
Bartosz Taudul 2018-08-04 19:55:16 +02:00
parent 5e9b2e36be
commit 4424a7d7e8

View File

@ -864,7 +864,8 @@ int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
}
else
{
return m_data.lastTime == 0 ? 0 : m_data.lastTime - fd.frames.back();
assert( m_data.lastTime != 0 );
return m_data.lastTime - fd.frames.back();
}
}