Fixed warnings about missing screenshots caused by 'prefetching'

screenshots.
This commit is contained in:
hiker 2015-01-23 10:59:16 +11:00
parent 4f5b84a134
commit 27ed23a6e7

View File

@ -209,8 +209,10 @@ bool TrackManager::loadTrack(const std::string& dirname)
m_track_avail.push_back(true);
updateGroups(track);
//Populate the texture cache with track screenshots
irr_driver->getTexture(track->getScreenshotFile());
// Populate the texture cache with track screenshots
// (internal tracks like end cutscene don't have screenshots)
if (!track->isInternal())
irr_driver->getTexture(track->getScreenshotFile());
return true;
} // loadTrack