mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
See if we have an instance of mData before trying to use it otherwise we get a crash when starting with --nosound
This commit is contained in:
parent
f3ae1ea737
commit
d38f2f0a00
@ -365,7 +365,11 @@ namespace MWSound
|
||||
|
||||
bool SoundManager::isMusicPlaying()
|
||||
{
|
||||
bool test = mData->music->isPlaying();
|
||||
bool test = false;
|
||||
if(mData && mData->music)
|
||||
{
|
||||
test = mData->music->isPlaying();
|
||||
}
|
||||
return test;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user