From 09aeac7551d64a0f70e512a9345652e61a72c3dd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 31 May 2004 20:17:22 +0000 Subject: [PATCH] (Why the pCourse->GetTrail() checks? GetTrail never returns NULL.) Don't write empty course entries. --- stepmania/src/CatalogXml.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/CatalogXml.cpp b/stepmania/src/CatalogXml.cpp index 676a4442f0..5aa54dd23c 100644 --- a/stepmania/src/CatalogXml.cpp +++ b/stepmania/src/CatalogXml.cpp @@ -76,6 +76,8 @@ void SaveCatalogXml( CString sDir ) Trail *pTrail = pCourse->GetTrail( st, cd ); if( pTrail == NULL ) continue; + if( !pTrail->m_vEntries.size() ) + continue; TrailID trailID; trailID.FromTrail( pTrail );