about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/menus_demo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp
index a96659d8..7d7e2903 100644
--- a/src/game/client/components/menus_demo.cpp
+++ b/src/game/client/components/menus_demo.cpp
@@ -484,9 +484,11 @@ void CMenus::RenderDemoList(CUIRect MainView)
 		{
 			char aBuf[512];
 			str_format(aBuf, sizeof(aBuf), "%s/%s", m_aCurrentDemoFolder, m_lDemos[m_DemolistSelectedIndex].m_aFilename);
-			Storage()->RemoveFile(aBuf, m_lDemos[m_DemolistSelectedIndex].m_StorageType);
-			DemolistPopulate();
-			DemolistOnUpdate(false);
+			if(Storage()->RemoveFile(aBuf, m_lDemos[m_DemolistSelectedIndex].m_StorageType))
+			{
+				DemolistPopulate();
+				DemolistOnUpdate(false);
+			}
 		}
 		m_DemolistDelEntry = false;
 	}