idSlowChannel avoid messing with lowpass member which has virtual

methods, so more `carefully` resetting.
This commit is contained in:
David Carlier 2022-08-07 09:57:53 +01:00
parent d4f576dff4
commit ca68aabbcc

View file

@ -1147,9 +1147,8 @@ idSlowChannel::Reset
===================
*/
void idSlowChannel::Reset() {
memset( this, 0, sizeof( *this ) );
this->chan = chan;
active = false;
chan = nullptr;
curPosition.Set( 0 );
newPosition.Set( 0 );
@ -1157,6 +1156,7 @@ void idSlowChannel::Reset() {
curSampleOffset = -10000;
newSampleOffset = -10000;
playbackState = 0;
triggerOffset = 0;
}