Skip to content
Snippets Groups Projects
Commit 714ecc5e authored by PilzAdam's avatar PilzAdam
Browse files

Only create SoundManager in main menu if USE_SOUND is true

parent 9397b5de
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment