From 4964aa9547ecb1da19abc867b50bce61a2d81c08 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 1 Oct 2019 00:40:58 +0200 Subject: [PATCH] Assert on getting index only for active strings. --- server/TracyEvent.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 44e50666..9b1c73bd 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -60,6 +60,7 @@ public: { uint32_t idx = 0; memcpy( &idx, m_idx, 3 ); + assert( idx != 0 ); return idx - 1; }