diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 7738929f..33ae89b0 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -317,7 +317,7 @@ void TracyLlm::Draw() return; } - if( !manualEmbeddingsState.done || manualEmbeddingsState.model != models[m_embedIdx].name ) + if( !manualEmbeddingsState.done || m_embedIdx < 0 || manualEmbeddingsState.model != models[m_embedIdx].name ) { if( m_embedIdx < 0 ) ImGui::BeginDisabled(); if( ImGui::SmallButton( ICON_FA_BOOK_BOOKMARK " Learn manual" ) )