diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 3247d8640..96f7f08e8 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -1314,7 +1314,9 @@ void CMenus::RenderDemoList(CUIRect MainView) if(DoButton_Menu(&s_RenderButton, Localize("Render"), 0, &RenderRect) || (Input()->KeyPress(KEY_R) && m_pClient->m_GameConsole.IsClosed())) { m_Popup = POPUP_RENDER_DEMO; - m_DemoRenderInput.Set(m_vDemos[m_DemolistSelectedIndex].m_aFilename); + char aNameWithoutExt[IO_MAX_PATH_LENGTH]; + fs_split_file_extension(m_vDemos[m_DemolistSelectedIndex].m_aFilename, aNameWithoutExt, sizeof(aNameWithoutExt)); + m_DemoRenderInput.Set(aNameWithoutExt); UI()->SetActiveItem(&m_DemoRenderInput); return; }