Merge pull request #1895 from marcoll/0.8.2-beta

Fix music stop problem when loading track selection screen
This commit is contained in:
auriamg 2015-01-13 18:09:04 -05:00
commit 1baa51418f

View File

@ -17,6 +17,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "tracks/track_manager.hpp"
#include "graphics/irr_driver.hpp"
#include <stdio.h>
#include <stdexcept>
@ -207,6 +208,10 @@ bool TrackManager::loadTrack(const std::string& dirname)
m_tracks.push_back(track);
m_track_avail.push_back(true);
updateGroups(track);
//Populate the texture cache with track screenshots
irr_driver->getTexture(track->getScreenshotFile());
return true;
} // loadTrack