1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Prevent streamMusic from throwing an exception

This commit is contained in:
Chris Robinson 2012-03-17 03:06:35 -07:00
parent 207d7dd89e
commit 2f6b73d461

View file

@ -165,7 +165,16 @@ namespace MWSound
{
std::string filePath = mMusicLibrary.locate(filename, mFSStrict, true).string();
if(!filePath.empty())
streamMusicFull(filePath);
{
try
{
streamMusicFull(filePath);
}
catch(std::exception &e)
{
std::cout << "Music Error: " << e.what() << "\n";
}
}
}
void SoundManager::startRandomTitle()