diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index b17a7222..fe650831 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -2121,7 +2121,7 @@ int64_t Worker::GetFrameEnd( const FrameData& fd, size_t idx ) const } else { - if( fd.frames[idx].end >= 0 ) + if( idx < fd.frames.size() && fd.frames[idx].end >= 0 ) { return fd.frames[idx].end; }