From 12f058664f73944ba59204e8833e2b199ebcd74b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Jun 2003 02:19:58 +0000 Subject: [PATCH] fix spurious warnings --- stepmania/src/BannerCache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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