Fixproblem of fotaq attempting to play sfx as music, when sfx are disabled.

svn-id: r11623
This commit is contained in:
Travis Howell 2003-12-14 03:36:47 +00:00
parent 7efafcca53
commit 6f2217dcb2

View File

@ -143,8 +143,9 @@ void Sound::playSong(int16 songNum) {
int16 newTune = _song[songNum - 1].tuneList[0];
if (_tune[newTune - 1].sfx[0] && sfxOn()) {
sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]);
if (_tune[newTune - 1].sfx[0]) {
if (sfxOn())
sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]);
return;
}