From 994b88f898644d240ac6d55600f04638cb338f4b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 31 May 2020 15:24:11 +0200 Subject: [PATCH] Ghost index is only available is statistics are enabled. --- server/TracyWorker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index d286ff06..92c88603 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3441,7 +3441,9 @@ ThreadData* Worker::NewThread( uint64_t thread ) td->id = thread; td->count = 0; td->nextZoneId = 0; +#ifndef TRACY_NO_STATISTICS td->ghostIdx = 0; +#endif m_data.threads.push_back( td ); m_threadMap.emplace( thread, td ); m_data.threadDataLast.first = thread;