Remove call to SetState, superfluous now that the state variables are gone.

This commit is contained in:
Henrik Rydgård 2014-02-11 17:05:40 +01:00
parent 0a3c59466d
commit caf729e01e

View File

@ -797,9 +797,4 @@ void ADSREnvelope::DoState(PointerWrap &p) {
int stepsLegacy;
p.Do(stepsLegacy);
p.Do(height_);
// If loading, recompute the per-state variables
if (p.GetMode() == PointerWrap::MODE_READ) {
SetState(state_);
}
}