fixed regression introduced in bb57521ef1 causing the game to crash when trying to incorrectly re-init SDL_mixer for change in sample rate - which isn't needed in the first place

This commit is contained in:
zico 2013-06-27 11:41:46 +02:00
parent 0c10c9db7f
commit 8534b9705b

View file

@ -765,8 +765,13 @@ int read_hamfile()
{
shareware = 1;
GameArg.SndDigiSampleRate = SAMPLE_RATE_11K;
digi_close();
digi_init();
#ifdef USE_SDLMIXER
if (GameArg.SndDisableSdlMixer)
#endif
{
digi_close();
digi_init();
}
}
}