From 3811c8ace40dcf68d3feeffed4b241a8d8cf3ab6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 25 Apr 2023 00:04:59 +0200 Subject: [PATCH] Remove redundant check. There is already check for zoneFree being non-nullptr, so it makes no sense to check zoneAlloc for that again, if it has to match zoneFree. --- server/TracyView_Memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView_Memory.cpp b/server/TracyView_Memory.cpp index b3b4d403..9d3aec3f 100644 --- a/server/TracyView_Memory.cpp +++ b/server/TracyView_Memory.cpp @@ -638,7 +638,7 @@ void View::DrawMemoryAllocWindow() } ZoneTooltip( *zoneFree ); } - if( zoneAlloc != 0 && zoneAlloc == zoneFree ) + if( zoneAlloc == zoneFree ) { ImGui::SameLine(); TextDisabledUnformatted( "(same zone)" );