diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index a42d49196b..e651ee3295 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -57,7 +57,7 @@ void BannerCache::LoadAllBanners() SDL_Surface *img = mySDL_LoadSurface( CachePath ); if( img == NULL ) { - LOG->Warn( "Cached banner load of '%s' failed", CachePath.c_str() ); + LOG->Trace( "Cached banner load of '%s' ('%s') failed", BannerPath.c_str(), CachePath.c_str() ); continue; } @@ -65,11 +65,11 @@ void BannerCache::LoadAllBanners() } - map::iterator ban; + map::const_iterator ban; int total_size = 0; for( ban = m_BannerPathToImage.begin(); ban != m_BannerPathToImage.end(); ++ban ) { - SDL_Surface *&img = ban->second; + SDL_Surface * const &img = ban->second; const int size = img->pitch * img->h; total_size += size; }