From 07bbf5cba879ef6cbb3a72648bf5850f573b34ba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 20 Aug 2009 23:17:44 +0000 Subject: [PATCH] fix assertion on optional files --- stepmania/src/ThemeManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index 59408adb21..07c6c6da28 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -772,7 +772,8 @@ RString ThemeManager::GetPath( ElementCategory category, const RString &sMetrics { PathInfo pi; GetPathInfo( pi, category, sMetricsGroup, sElement, bOptional ); - ASSERT( !pi.sResolvedPath.empty() ); + if(!bOptional) + ASSERT( !pi.sResolvedPath.empty() ); return pi.sResolvedPath; }