Set the reverb type when loading a savestate. May help #8528

This commit is contained in:
Henrik Rydgard 2016-01-31 11:20:26 +01:00
parent f14dcb15db
commit b68f2deca8

View File

@ -723,6 +723,9 @@ void SasInstance::DoState(PointerWrap &p) {
}
p.DoArray(voices, ARRAY_SIZE(voices));
p.Do(waveformEffect);
if (p.mode == p.MODE_READ) {
reverb_.SetPreset(waveformEffect.type);
}
}
void SasVoice::Reset() {
@ -764,8 +767,7 @@ void SasVoice::ChangedParams(bool changedVag) {
// TODO: restart VAG somehow
}
void SasVoice::DoState(PointerWrap &p)
{
void SasVoice::DoState(PointerWrap &p) {
auto s = p.Section("SasVoice", 1, 3);
if (!s)
return;