diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 93b199b4..0c552dc6 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -651,7 +651,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) { uint64_t t; f.Read( t ); - lockmap.threadMap.emplace( t, lockmap.threadList.size() ); + lockmap.threadMap.emplace( t, i ); lockmap.threadList.emplace_back( t ); } f.Read( tsz );