1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 15:48:48 -05:00

Only create SoundManager in main menu if USE_SOUND is true

This commit is contained in:
PilzAdam 2013-05-18 13:01:47 +02:00
parent 9397b5de08
commit 714ecc5e27

View File

@ -1845,7 +1845,9 @@ int main(int argc, char *argv[])
MenuMusicFetcher soundfetcher;
ISoundManager *sound = NULL;
#if USE_SOUND
sound = createOpenALSoundManager(&soundfetcher);
#endif
if(!sound)
sound = &dummySoundManager;
SimpleSoundSpec spec;