From 714ecc5e27c2c01b0f3ce0ba626abb6baca9af13 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 18 May 2013 13:01:47 +0200 Subject: [PATCH] Only create SoundManager in main menu if USE_SOUND is true --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index d28ba9b9..e5c8a55d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; -- 2.30.2