Fixed the crash that would occur if the audio backend is switched before a game is loaded.

This commit is contained in:
skidau 2015-05-20 14:57:58 +00:00
parent e4959e111f
commit 17282fd988
1 changed files with 3 additions and 1 deletions

View File

@ -2472,7 +2472,9 @@ EVT_HANDLER_MASK(SoundConfigure, "Sound options...", CMDEN_NREC_ANY)
soundSetVolume((float)gopts.sound_vol / 100.0);
update_opts();
soundReset();
if (emulating)
soundReset();
}
EVT_HANDLER(EmulatorDirectories, "Directories...")