diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index 2d7db484b2..bdec2ed850 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -51,7 +51,7 @@ CString BannerCache::GetBannerCachePath( CString BannerPath ) void BannerCache::LoadBanner( CString BannerPath ) { - if( !PREFSMAN->m_bBannerCache ) + if( !PREFSMAN->m_bBannerCache || BannerPath == "" ) return; /* Load it. */ @@ -211,6 +211,9 @@ RageTextureID BannerCache::LoadCachedBanner( CString BannerPath ) { RageTextureID ID( GetBannerCachePath(BannerPath) ); + if( BannerPath == "" ) + return ID; + LOG->Trace("BannerCache::LoadCachedBanner(%s): %s", BannerPath.c_str(), ID.filename.c_str() ); /* Hack: make sure Banner::Load doesn't change our return value and end up