Shouldn't voice.type == VOICETYPE_VAG/PCM

This commit is contained in:
raven02 2014-01-24 00:28:53 +08:00
parent d69f02dea0
commit 9965bbb43e

View file

@ -394,10 +394,10 @@ void SasVoice::ReadSamples(s16 *output, int numSamples) {
void SasInstance::MixVoice(SasVoice &voice) {
switch (voice.type) {
case VOICETYPE_VAG:
if (voice.type == VOICETYPE_VAG && !voice.vagAddr)
if (!voice.vagAddr)
break;
case VOICETYPE_PCM:
if (voice.type == VOICETYPE_PCM && !voice.pcmAddr)
if (!voice.pcmAddr)
break;
default:
// Load resample history (so we can use a wide filter)