Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only create SoundManager in main menu if USE_SOUND is true
  • Loading branch information
PilzAdam committed May 18, 2013
1 parent 9397b5d commit 714ecc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 714ecc5

Please sign in to comment.