From e3edd7e3360548dccf2969d68d114538c624b104 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Sep 2017 21:04:35 +0200 Subject: [PATCH] Explicit zone index. --- server/TracyView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 68e61618..c4852ae7 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -185,9 +185,10 @@ void View::ProcessZoneEnd( uint64_t id, const QueueZoneEnd& ev ) } else { + const auto idx = it->second; std::unique_lock lock( m_lock ); - assert( ev.time >= m_data[it->second].start ); - m_data[it->second].end = ev.time; + assert( ev.time >= m_data[idx].start ); + m_data[idx].end = ev.time; lock.unlock(); m_openZones.erase( it );