From cdfe451880665d91f822ecd0cda4b9531fd68337 Mon Sep 17 00:00:00 2001 From: MilkeeyCat Date: Sun, 23 Jun 2024 20:31:20 +0300 Subject: [PATCH] fix: correct arguments highlighting after removing entry --- src/game/editor/editor_server_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/editor/editor_server_settings.cpp b/src/game/editor/editor_server_settings.cpp index 5c2e6bf9c..b8c374c01 100644 --- a/src/game/editor/editor_server_settings.cpp +++ b/src/game/editor/editor_server_settings.cpp @@ -84,7 +84,10 @@ void CEditor::RenderServerSettingsEditor(CUIRect View, bool ShowServerSettingsEd s_CommandSelectedIndex = m_Map.m_vSettings.size() - 1; if(s_CommandSelectedIndex >= 0) m_SettingsCommandInput.Set(m_Map.m_vSettings[s_CommandSelectedIndex].m_aCommand); + else + m_SettingsCommandInput.Clear(); m_Map.OnModify(); + m_MapSettingsCommandContext.Update(); s_ListBox.ScrollToSelected(); }