From 23601904cdffb6d46782b67cc0f6b830455bb8a9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 23 Jan 2020 18:50:13 +0100 Subject: [PATCH] Replace one more end validity check. --- server/TracyWorker.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 208643a1..f552b56f 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -382,7 +382,7 @@ public: // GetZoneEndDirect() will only return zone's direct timing data, without looking at children. int64_t GetZoneEnd( const ZoneEvent& ev ); int64_t GetZoneEnd( const GpuEvent& ev ); - static tracy_force_inline int64_t GetZoneEndDirect( const ZoneEvent& ev ) { return ev.End() >= 0 ? ev.End() : ev.Start(); } + static tracy_force_inline int64_t GetZoneEndDirect( const ZoneEvent& ev ) { return ev.IsEndValid() ? ev.End() : ev.Start(); } static tracy_force_inline int64_t GetZoneEndDirect( const GpuEvent& ev ) { return ev.GpuEnd() >= 0 ? ev.GpuEnd() : ev.GpuStart(); } const char* GetString( uint64_t ptr ) const;