fix spurious warnings

This commit is contained in:
Glenn Maynard
2003-06-15 02:19:58 +00:00
parent 65c51af8a4
commit 12f058664f
+4 -1
View File
@@ -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