See if we have an instance of mData before trying to use it otherwise we get a crash when starting with --nosound

actorid
Jan-Peter Nilsson 14 years ago
parent f3ae1ea737
commit d38f2f0a00

@ -364,10 +364,14 @@ namespace MWSound
bool SoundManager::isMusicPlaying()
{
bool test = mData->music->isPlaying();
return test;
}
{
bool test = false;
if(mData && mData->music)
{
test = mData->music->isPlaying();
}
return test;
}
SoundManager::SoundImpl SoundManager::getMData()
{

Loading…
Cancel
Save